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
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