vertx / io.vertx.reactivex.core.http / HttpClientRequest / writeCustomFrame

writeCustomFrame

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

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

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

This method must be called after the request headers have been sent and only for the protocol HTTP/2. The io.vertx.reactivex.core.http.HttpClientRequest#sendHead should be used for this purpose.

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): HttpClientRequest

Like io.vertx.reactivex.core.http.HttpClientRequest#writeCustomFrame but with an io.vertx.reactivex.core.http.HttpFrame.

Parameters

frame - the frame to write

Return