vertx / io.vertx.core.http / HttpClientResponse / netSocket

netSocket

abstract fun netSocket(): NetSocket

Get a net socket for the underlying connection of this request.

USE THIS WITH CAUTION! Writing to the socket directly if you don't know what you're doing can easily break the HTTP protocol

One valid use-case for calling this is to receive the io.vertx.core.net.NetSocket after a HTTP CONNECT was issued to the remote peer and it responded with a status code of 200.

Return
the net socket