HttpClientPort

interface HttpClientPort

Functions

Link copied to clipboard
abstract fun send(request: HttpRequestPort): HttpResponsePort
Link copied to clipboard
abstract fun shutDown()
Link copied to clipboard
abstract fun sse(request: HttpRequestPort): Flow.Publisher<ServerEvent>
Link copied to clipboard
abstract fun started(): Boolean
Link copied to clipboard
abstract fun startUp(client: HttpClient)
Link copied to clipboard
abstract fun ws(path: String, onConnect: WsSession.() -> Unit, onBinary: WsSession.(data: ByteArray) -> Unit, onText: WsSession.(text: String) -> Unit, onPing: WsSession.(data: ByteArray) -> Unit = {}, onPong: WsSession.(data: ByteArray) -> Unit = {}, onClose: WsSession.(status: Int, reason: String) -> Unit): WsSession