MessageHeaders

class MessageHeaders(pointer: <Error class: unknown class><<Error class: unknown class>>)

The HTTP message headers associated with a request or response.

Skipped during bindings generation

  • parameter disposition: disposition: Out parameter is not supported

  • parameter start: start: Out parameter is not supported

  • parameter params: params: Out parameter is not supported

  • parameter ranges: ranges: Out parameter is not supported

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val soupMessageHeadersPointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard
fun append(name: String, value: String)

Appends a new header with name @name and value @value to @hdrs.

Link copied to clipboard

Removes all the headers listed in the Connection header.

Link copied to clipboard
fun clear()

Clears @hdrs.

Link copied to clipboard

Calls @func once for each header value in @hdrs.

Link copied to clipboard
fun freeRanges(ranges: Range)

Frees the array of ranges returned from method@MessageHeaders.get_ranges.

Link copied to clipboard
fun getContentLength(): <Error class: unknown class>

Gets the message body length that @hdrs declare.

Link copied to clipboard

Gets the message body encoding that @hdrs declare.

Link copied to clipboard

Gets the expectations declared by @hdrs's "Expect" header.

Link copied to clipboard

Gets the type of headers.

Link copied to clipboard
fun getList(name: String): String?

Gets the value of header @name in @hdrs.

Link copied to clipboard
fun getOne(name: String): String?

Gets the value of header @name in @hdrs.

Link copied to clipboard
fun headerContains(name: String, token: String): Boolean

Checks whether the list-valued header @name is present in @hdrs, and contains a case-insensitive match for @token.

Link copied to clipboard
fun headerEquals(name: String, value: String): Boolean

Checks whether the header @name is present in @hdrs and is (case-insensitively) equal to @value.

Link copied to clipboard

Atomically increments the reference count of @hdrs by one.

Link copied to clipboard
fun remove(name: String)

Removes @name from @hdrs.

Link copied to clipboard
fun replace(name: String, value: String)

Replaces the value of the header @name in @hdrs with @value.

Link copied to clipboard
fun setContentDisposition(disposition: String, params: <Error class: unknown class>? = null)

Sets the "Content-Disposition" header in @hdrs to @disposition, optionally with additional parameters specified in @params.

Link copied to clipboard
fun setContentLength(contentLength: <Error class: unknown class>)

Sets the message body length that @hdrs will declare, and sets

Link copied to clipboard
fun setContentRange(start: <Error class: unknown class>, end: <Error class: unknown class>, totalLength: <Error class: unknown class>)

Sets @hdrs's Content-Range header according to the given values.

Link copied to clipboard
fun setContentType(contentType: String, params: <Error class: unknown class>? = null)

Sets the "Content-Type" header in @hdrs to @content_type.

Link copied to clipboard
fun setEncoding(encoding: Encoding)

Sets the message body encoding that @hdrs will declare.

Link copied to clipboard
fun setExpectations(expectations: Expectation)

Sets @hdrs's "Expect" header according to @expectations.

Link copied to clipboard
fun setRange(start: <Error class: unknown class>, end: <Error class: unknown class>)

Sets @hdrs's Range header to request the indicated range.

Link copied to clipboard
fun setRanges(ranges: Range, length: <Error class: unknown class>)

Sets @hdrs's Range header to request the indicated ranges.

Link copied to clipboard
fun unref()

Atomically decrements the reference count of @hdrs by one.