View source code
Display the source code in std/net/curl.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
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.

std.net.curl.HTTP.StatusLine/statusLine - multiple declarations

Function HTTP.statusLine

HTTP status line of last response. One call to perform may result in several requests because of redirection.

HTTP.StatusLine statusLine() @property;

Struct HTTP.StatusLine

HTTP status line ie. the first line returned in an HTTP response.

struct StatusLine ;

If authentication or redirections are done then the status will be for the last response received.

Fields

NameTypeDescription
code ushortHTTP status line code e.g. 200.
majorVersion ushortMajor HTTP version ie. 1 in HTTP/1.0.
minorVersion ushortMinor HTTP version ie. 0 in HTTP/1.0.
reason stringHTTP status line reason string.

Methods

NameDescription
reset () Reset this status line
toString ()

Authors

Jonas Drewsen. Some of the SMTP code contributed by Jimmy Cao.

License

Boost License 1.0.