RequestBuilder

interface RequestBuilder<Req, Res> : Request<Req, Res>

Options for requests to Restate services.

Inheritors

Functions

Link copied to clipboard
abstract fun build(): Request<Req, Res>
Link copied to clipboard
@Nullable
abstract fun getHeaders(): @Nullable Map<String, String>
Link copied to clipboard
@Nullable
abstract fun getIdempotencyKey(): @Nullable String
Link copied to clipboard
abstract fun getRequest(): Req
Link copied to clipboard
abstract fun getRequestTypeTag(): TypeTag<Req>
Link copied to clipboard
abstract fun getResponseTypeTag(): TypeTag<Res>
Link copied to clipboard
abstract fun getTarget(): Target
Link copied to clipboard
abstract fun header(key: String, value: String): RequestBuilder<Req, Res>
Append this header to the list of configured headers.
Link copied to clipboard
abstract fun headers(newHeaders: Map<String, String>): RequestBuilder<Req, Res>
Append the given header map to the list of headers.
Link copied to clipboard
abstract fun idempotencyKey(idempotencyKey: String): RequestBuilder<Req, Res>
Link copied to clipboard
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.
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.
Link copied to clipboard
abstract fun setHeaders(@Nullable headers: @Nullable Map<String, String>): RequestBuilder<Req, Res>
Link copied to clipboard
abstract fun setIdempotencyKey(@Nullable idempotencyKey: @Nullable String): RequestBuilder<Req, Res>