HttpClientPort

interface HttpClientPort

Functions

Link copied to clipboard
abstract fun send(request: HttpClientRequest): HttpClientResponse
Link copied to clipboard
abstract fun shutDown()
Link copied to clipboard
abstract fun sse(request: HttpClientRequest): 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: WsCloseStatus, reason: String) -> Unit): WsSession