vibe.d beta banner
get vibe.d
0.7.30

Class HTTPRequest

Represents an HTTP request made to a server.

Inherits from

  • Object (base class)

Constructors

Name Description
this
this

Fields

Name Type Description
headers DictionaryList!(string,false,12L,false) All request headers
httpVersion HTTPVersion The HTTP protocol version used for the request
method HTTPMethod The HTTP method of the request
requestURL string The request URL
m_conn Stream

Properties

Name Type Description
contentType [get, set] string Returns the mime type part of the 'Content-Type' header.
contentTypeParameters [get] string Returns any supplementary parameters of the 'Content-Type' header.
host [get, set] string Shortcut to the 'Host' header (always present for HTTP 1.1)
persistent [get] bool Determines if the connection persists across requests.

Methods

Name Description
toString
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.