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

writeCustomFrame

abstract 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 #writeCustomFrame(int, int, Buffer) but with an HttpFrame.

Parameters

frame - the frame to write