SimpleHttpOptions

Description

sealed class Tinman.Core.IO.SimpleHttpOptions

A set of options to use when sending HTTP requests with a ISimpleHttp object.

Public / Constructors

Simple​Http​Options


public constructor SimpleHttpOptions → ()

Creates a new instance of SimpleHttpOptions.

Public / Methods

Clear


public method Clear → ()

returns → SimpleHttpOptions

this

Clears all options.

Header


public method Header → (2)

name in : string

[not-null]
The header name. All invalid characters will be removed.

value in : string

The header value to set or null to clear. All invalid characters will be removed. Leading and trailing whitespaces will be removed. Consecutive whitespace characters will be merged into a single ' ' character.

returns → SimpleHttpOptions

this

Sets or clears an HTTP header.

Header names may be composed of these valid characters:

!#$%&'*+-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ^_`abcdefghijklmnopqrstuvwxyz|~

Header values may be composed of these valid characters and whitespaces:

!"#$%&'()*+,-./0123456789:;?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}~

Public / Attributes

Headers​List


public attribute HeadersList → (get)

value : IVectorConst<string>

[not-null]
The HTTP headers, each one formatted as "name: value".

The HTTP headers.

Headers​Map


public attribute HeadersMap → (get)

value : ISortedMapConst<string, string>

[not-null]
The HTTP headers, mapped from header name (without the trailing ':' delimiter) to header value (without leading and trailing whitespace).

The HTTP headers.