vibe.d beta banner
get vibe.d
0.7.31

Asynchronous I/O that doesn’t get in your way, written in D

Class HTTPRequest

Represents an HTTP request made to a server.

class HTTPRequest ;

Constructors

Constructors

NameDescription
this
this

Fields

Fields

NameTypeDescription
headersDictionaryList!(string,false,12L,false)All request headers
httpVersionHTTPVersionThe HTTP protocol version used for the request
methodHTTPMethodThe HTTP method of the request
requestURLstringThe request URL
m_connStream

Properties

Properties

NameTypeDescription
contentType[get, set]stringReturns the mime type part of the 'Content-Type' header.
contentTypeParameters[get]stringReturns any supplementary parameters of the 'Content-Type' header.
host[get, set]stringShortcut to the 'Host' header (always present for HTTP 1.1)
persistent[get]boolDetermines if the connection persists across requests.

Methods

Methods

NameDescription
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.