vertx / io.vertx.rxjava.core.http / HttpServerResponse / writeCustomFrame

writeCustomFrame

open fun writeCustomFrame(type: Int, flags: Int, payload: Buffer): HttpServerResponse

Write an HTTP/2 frame to the response, allowing to extend the HTTP/2 protocol.

The frame is sent immediatly and is not subject to flow control.

Parameters

type - the 8-bit frame type

flags - the 8-bit frame flags

payload - the frame payload

Return
a reference to this, so the API can be used fluently

open fun writeCustomFrame(frame: HttpFrame): HttpServerResponse

Like io.vertx.rxjava.core.http.HttpServerResponse#writeCustomFrame but with an io.vertx.rxjava.core.http.HttpFrame.

Parameters

frame - the frame to write

Return