Module vibe.http.common
Common classes for HTTP clients and servers.
Functions
Name | Description |
---|---|
chunkedInputStream(source_stream)
|
Creates a new ChunkedInputStream instance.
|
createChunkedInputStreamFL(source_stream)
|
Creates a new ChunkedInputStream instance.
|
createChunkedOutputStream(destination_stream, allocator)
|
Creates a new ChunkedInputStream instance.
|
createChunkedOutputStreamFL(destination_stream, allocator)
|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
CookieValueMap
|
Enums
Name | Description |
---|---|
HTTPMethod
|
|
HTTPVersion
|