libhttp2.types

Types

Members

Aliases

DataProvider
alias DataProvider = int delegate(ubyte[] buf, ref DataFlags data_flags)

Callback function invoked when the library wants to read data from the source. The read data is sent in the stream |stream_id|. The implementation of this function must read at most |length| bytes of data from |source| (or possibly other places) and store them in |buf| and return number of data stored in |buf|. If EOF is reached, set DataFlags.EOF

Mem
alias Mem = ThreadMem
Undocumented in source.
SettingsID
alias SettingsID = Setting.SettingCode
Undocumented in source.

Enums

DataFlags
enum DataFlags

The flags used to set in |data_flags| output parameter in DataSource.read_callback

ErrorCode
enum ErrorCode

Return values used in this library. The code range is [-999, -500], inclusive.

FrameError
enum FrameError

The status codes for the RST_STREAM and GOAWAY frames.

FrameFlags
enum FrameFlags

The flags for HTTP/2 frames. This enum defines all flags for all frames.

FrameType
enum FrameType

The frame types in HTTP/2 specification.

HTTPFlags
enum HTTPFlags

HTTP related flags to enforce HTTP semantics

HeaderFlag
enum HeaderFlag

The flag for a header field.

HeadersCategory
enum HeadersCategory

The category of HEADERS, which indicates the role of the frame. In HTTP/2 spec, request, response, push response and other arbitrary headers (e.g., trailers) are all called just HEADERS. To give the application the role of incoming HEADERS frame, we define several categories.

ShutdownFlag
enum ShutdownFlag
Undocumented in source.
StreamDPRI
enum StreamDPRI
Undocumented in source.
StreamFlags
enum StreamFlags
Undocumented in source.
StreamState
enum StreamState

If local peer is stream initiator: OPENING : upon sending request HEADERS OPENED : upon receiving response HEADERS CLOSING : upon queuing RST_STREAM

Token
enum Token

HTTP Tokens

Functions

LOGF
void LOGF(ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
logDebug
void logDebug(ARGS args)
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString(ErrorCode error_code)
Undocumented in source. Be warned that the author may not have intended to support it.

Structs

HeaderField
struct HeaderField

The header field, which mainly used to represent HTTP headers.

Setting
struct Setting
Undocumented in source.

Meta

License

Distributed under the terms of the MIT license with an additional section 1.2 of the curl/libcurl project. Consult the provided LICENSE.md file for details