RequestBuilder

cc.otavia.http.client.HttpClientRequest.RequestBuilder

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def addHeader(key: HttpHeaderKey, value: HttpHeaderValue): this.type
def addHeaders(headers: Map[HttpHeaderKey, HttpHeaderValue]): this.type
def addHeaders(headers: (HttpHeaderKey, HttpHeaderValue)*): this.type
def build[R](responseSerde: Serde[R]): HttpClientRequest
def get(): this.type

Shorthand for setMethod(HttpMethod.GET)

Shorthand for setMethod(HttpMethod.GET)

Attributes

def post(): this.type

Shorthand for setMethod(HttpMethod.POST)

Shorthand for setMethod(HttpMethod.POST)

Attributes

def setBody[C](body: C, bodySerde: Serde[C]): this.type

Setting the request body and Serde for body.

Setting the request body and Serde for body.

Type parameters

C

Type of request body.

Value parameters

body

body

bodySerde

body Serde

Attributes

Returns

this object.

def setJsonBody[C](body: C)(using bodySerde: JsonSerde[C]): this.type

Setting the request body and Serde for body.

Setting the request body and Serde for body.

Type parameters

C

Type of request body.

Value parameters

body

body

bodySerde

body JsonSerde

Attributes

Returns

this object.

def setMapJsonBody(body: Map[String, String]): this.type

Setting the map as request body and serde to json.

Setting the map as request body and serde to json.

Value parameters

body

body

Attributes

Returns

this object.

def setMediaType(mediaType: MediaType): this.type
def setMethod(method: HttpMethod): this.type
def setParams(params: Map[String, String]): this.type
def setPath(path: String): this.type