View source code
Display the source code in std/net/curl.d from which this page was generated on
github.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
local clone.
Page wiki
View or edit the community-maintained wiki page associated with this page.
std.net.curl.http.status_line - multiple declarations
- Function HTTP.statusLine
- Struct HTTP.StatusLine
Function HTTP.statusLine
HTTP status line of last response. One call to perform may
result in several requests because of redirection.
Prototype
HTTP.StatusLine statusLine() @property;
Struct HTTP.StatusLine
HTTP status line ie. the first line returned in an HTTP response.
If authentication or redirections are done then the status will be for the last response received.
Fields
| Name | Type | Description |
|---|---|---|
code
|
ushort |
HTTP status line code e.g. 200.
|
majorVersion
|
ushort |
Major HTTP version ie. 1 in HTTP/1.0.
|
minorVersion
|
ushort |
Minor HTTP version ie. 0 in HTTP/1.0.
|
reason
|
string |
HTTP status line reason string.
|
Methods
| Name | Description |
|---|---|
reset
|
Reset this status line |
toString
|
Authors
Jonas Drewsen. Some of the SMTP code contributed by Jimmy Cao.