Skip to content

ResponseBuilderHeaders

[Source]

interface ref ResponseBuilderHeaders

Public Functions

add_header

[Source]

fun ref add_header(
  name: String val,
  value: String val)
: ResponseBuilderHeaders ref

Parameters

Returns


set_content_length

[Source]

fun ref set_content_length(
  content_length: USize val)
: ResponseBuilderHeaders ref

Parameters

  • content_length: USize val

Returns


set_transfer_encoding

[Source]

fun ref set_transfer_encoding(
  chunked: (Chunked val | None val))
: ResponseBuilderHeaders ref

Parameters

Returns


finish_headers

[Source]

fun ref finish_headers()
: ResponseBuilderBody ref

Returns


reset

[Source]

fun ref reset()
: ResponseBuilder ref

Returns