vibe.d beta banner
get vibe.d
0.10.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
chunkedInputStream(source_stream) Creates a new ChunkedInputStream instance.
createChunkedInputStreamFL(source_stream) Creates a new ChunkedInputStream instance.
createChunkedOutputStream(destination_stream) Creates a new ChunkedInputStream instance.
createChunkedOutputStreamFL(destination_stream) Creates a new ChunkedOutputStream instance.
enforceBadRequest(condition, message, file, line) Utility function that throws a HTTPStatusException with status code "400 Bad Request" if the condition is not met.
enforceHTTP(condition, statusCode, message, file, line) Utility function that throws a HTTPStatusException if the condition is not met.
getHTTPVersionString(ver)
httpMethodFromString(str) Returns the HttpMethod value matching the given HTTP method string.
httpMethodString(m) Returns the string representation of the given HttpMethod.
parseHTTPCookie(header_string, dst) Parses the cookie from a header field, returning the name of the cookie. Implements an algorithm equivalent to https://tools.ietf.org/html/rfc6265#section-5.2
parseHTTPVersion(str)

Classes

NameDescription
ChunkedInputStream Takes an input stream that contains data in HTTP chunked format and outputs the raw data.
ChunkedOutputStream Outputs data to an output stream in HTTP chunked format.
Cookie
HTTPRequest Represents an HTTP request made to a server.
HTTPResponse Represents the HTTP response from the server back to the client.
HTTPStatusException Respresents a HTTP response status.
MultiPart

Structs

NameDescription
CookieValueMap

Enums

NameDescription
HTTPMethod
HTTPVersion
Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012-2015 Sönke Ludwig

License

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