ae.net.http.common

Concepts shared between HTTP clients and servers.

Members

Aliases

UrlParameters (from ae.net.ietf.url)
alias UrlParameters = MultiAA!(string, string) via public import ae.net.ietf.url : UrlParameters, encodeUrlParameter, encodeUrlParameters, decodeUrlParameter, decodeUrlParameters;
Undocumented in source.
encodeUrlParameter (from ae.net.ietf.url)
alias encodeUrlParameter = encodeUrlPart!(c => isAlphaNum(c) || c == '-' || c == '_') via public import ae.net.ietf.url : UrlParameters, encodeUrlParameter, encodeUrlParameters, decodeUrlParameter, decodeUrlParameters;
Undocumented in source.

Classes

HttpRequest
class HttpRequest

HTTP request class

HttpResponse
class HttpResponse

HTTP reply class

Enums

HttpStatusCode
enum HttpStatusCode

HTTP response status codes

Functions

cacheForever
void cacheForever(Headers headers)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeMultipart
MultipartPart[] decodeMultipart(Data data, string boundary)
Undocumented in source. Be warned that the author may not have intended to support it.
decodeUrlParameter (from ae.net.ietf.url)
string decodeUrlParameter(string encoded) via public import ae.net.ietf.url : UrlParameters, encodeUrlParameter, encodeUrlParameters, decodeUrlParameter, decodeUrlParameters;
Undocumented in source.
decodeUrlParameters (from ae.net.ietf.url)
UrlParameters decodeUrlParameters(string qs) via public import ae.net.ietf.url : UrlParameters, encodeUrlParameter, encodeUrlParameters, decodeUrlParameter, decodeUrlParameters;
Undocumented in source.
disableCache
void disableCache(Headers headers)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeMultipart
Data encodeMultipart(MultipartPart[] parts, string boundary)
Undocumented in source. Be warned that the author may not have intended to support it.
encodeUrlParameters (from ae.net.ietf.url)
string encodeUrlParameters(string[string] dic) via public import ae.net.ietf.url : UrlParameters, encodeUrlParameter, encodeUrlParameters, decodeUrlParameter, decodeUrlParameters;
Undocumented in source.
httpEscape
string httpEscape(string str)
Undocumented in source. Be warned that the author may not have intended to support it.
httpTime
string httpTime(SysTime time)
Undocumented in source. Be warned that the author may not have intended to support it.
parseItemList
string[] parseItemList(string s)

Parses a list in the format of "a, b, c;q=0.5, d" and returns an array of items sorted by "q" (["a", "b", "d", "c"])

Structs

MultipartPart
struct MultipartPart
Undocumented in source.

Meta

License

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Authors

Stéphan Kochen <stephan@kochen.nl> Vladimir Panteleev <vladimir@thecybershadow.net> Simon Arlott