handy_httpd.components.parse_utils

Internal parsing utilities for the server's HTTP request processing.

Members

Functions

parseRequest
Tuple!(HttpRequest, int) parseRequest(MsgParser!Msg requestParser, string s)

Parses an HTTP request from a string.

parseUrlAndParams
Tuple!(string, StringMultiValueMap) parseUrlAndParams(string rawUrl)

Parses a path and set of query parameters from a raw URL string.

receiveRequest
Optional!HttpRequestContext receiveRequest(HttpServer server, Socket clientSocket, InputStream inputStream, OutputStream outputStream, ubyte[] receiveBuffer, MsgParser!Msg requestParser, Logger logger)

Attempts to receive an HTTP request from the given socket.

Structs

Header
struct Header

The header struct to use when parsing data.

Msg
struct Msg

The message struct to use when parsing HTTP requests, using the httparsed library.