interceptHttpProtocol
abstract fun interceptHttpProtocol(scheme: String, handler: (request: ProtocolRequest, callback: (response: ProtocolResponse) -> Unit) -> Unit): Boolean(source)
Whether the protocol was successfully intercepted
Intercepts scheme
protocol and uses handler
as the protocol's new handler which sends a new HTTP request as a response.