vibe.d beta banner
get vibe.d
0.8.1

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

Module vibe.http.common

Common classes for HTTP clients and servers.

Functions

NameDescription
getHTTPVersionString(ver)
httpMethodFromString(str)Returns the HttpMethod value matching the given HTTP method string.
httpMethodString(m)Returns the string representation of the given HttpMethod.
parseHTTPVersion(str)

Classes

NameDescription
ChunkedInputStreamTakes an input stream that contains data in HTTP chunked format and outputs the raw data.
ChunkedOutputStreamOutputs data to an output stream in HTTP chunked format.
Cookie
HTTPRequestRepresents an HTTP request made to a server.
HTTPResponseRepresents the HTTP response from the server back to the client.
HTTPStatusExceptionRespresents a HTTP response status.
MultiPart

Structs

NameDescription
CookieValueMap

Enums

NameDescription
HTTPMethod
HTTPVersion

Templates

NameDescription
enforceBadRequestUtility function that throws a HTTPStatusException with status code "400 Bad Request" if the condition is not met.
enforceHTTPUtility function that throws a HTTPStatusException if the condition is not met.
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

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