12345678910111213141516171819202122232425module juptune.http.v1;
struct Http1ResponseLine
{
/++ ALIASES ++/
///
alias __xdtor = __MARMOS_BUG__;
/++ FUNCTIONS ++/
/// Accesses the response line data.
void access(void function(const const char[] reasonPhrase) func);
/// ditto.
void access(void function(const const char[] reasonPhrase) func);
///
Http1ResponseLine opAssign(Http1ResponseLine p);
/++ VARIABLES ++/
/// The http version of the response line
Http1Version httpVersion;
/// The status code of the response
uint statusCode;
}
Contains the contents of a response line.
This struct contains a pinned slice of the Http1Reader's buffer, so after processing the response line, 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 response line data. |
| access |
ditto. |
| opAssign |
| Name | Description |
|---|---|
| httpVersion |
The http version of the response line |
| statusCode |
The status code of the response |