of

open fun <Req, Res> of(target: Target, reqTypeTag: TypeTag<Req>, resTypeTag: TypeTag<Res>, request: Req): RequestBuilder<Req, Res>

Create a new RequestBuilder for the given Target, request and response and request object.

When using the annotation processor, you can rely on the generated Handlers class, instead of manually using this builder. For example, for a service class name Greeter, the corresponding class where all the requests builders are available is named GreeterHandlers


open fun of(target: Target, request: Array<Byte>): RequestBuilder<Array<Byte>, Array<Byte>>

Create a new RequestBuilder for the given Target and request byte array.

When using the annotation processor, you can rely on the generated Handlers class, instead of manually using this builder. For example, for a service class name Greeter, the corresponding class where all the requests builders are available is named GreeterHandlers