registerBufferProtocol
abstract fun registerBufferProtocol(scheme: String, handler: (request: ProtocolRequest, callback: (response: Any) -> Unit) -> Unit): Boolean(source)
Whether the protocol was successfully registered
Registers a protocol of scheme that will send a Buffer as a response.
The usage is the same with registerFileProtocol, except that the callback should be called with either a Buffer object or an object that has the data property.
Example: