1234567891011121314151617181920212223module juptune.http.v1;
struct Http1Header
{
/++ ALIASES ++/
///
alias __xdtor = __MARMOS_BUG__;
/++ FUNCTIONS ++/
/// Accesses the header data.
void access(void function(const const char[] name, const const char[] value) func);
/// ditto.
void access(void function(const const char[] name, const const char[] value) func);
///
Http1Header opAssign(Http1Header p);
/++ VARIABLES ++/
///
Http1PinnedSlice entireLine;
}
Contains the contents of a header.
This struct contains a pinned slice of the Http1Reader's buffer, so after processing the header, the user code must release the slice by destroying the struct (e.g. setting it to .init, letting it go out of scope, etc.)
In order to make it as clear as possible that data from this struct must not** be escaped, the accessmethod is provided which enforces via the type system that string data is not escaped.
| Name | Description |
|---|---|
| __xdtor |
| Name | Description |
|---|---|
| access |
Accesses the header data. |
| access |
ditto. |
| opAssign |
| Name | Description |
|---|---|
| entireLine |