10 #ifndef K_API_HTTP_SERVER_REQUEST_H
11 #define K_API_HTTP_SERVER_REQUEST_H
14 #include <kApi/Io/kHttpServerRequest.x.h>
const kChar * kHttpServerRequest_HeaderName(kHttpServerRequest request, kPointer header)
Gets the field name associated with a header reference.
k64s kHttpServerRequest_ContentLength(kHttpServerRequest request)
Reports the total message length for a simple (non-chunk-encoded) message.
kVersion kHttpServerRequest_Version(kHttpServerRequest request)
Returns a value representing the HTTP version associated with this request.
Represents a 64-bit unsigned integer.
Represents a void pointer.
kSize kHttpServerRequest_HeaderCount(kHttpServerRequest request)
Returns the total count of headers parsed from this request.
kStatus kHttpServerRequest_BeginRead(kHttpServerRequest request, k64u *length, kStream *stream)
Begins reading the message body.
const kChar * kHttpServerRequest_Method(kHttpServerRequest request)
Returns a string representing the HTTP request method (e.g.
kPointer kHttpServerRequest_NextHeader(kHttpServerRequest request, kPointer header)
Given a header reference, gets a reference to the next header.
Represents an unsigned integer that can store a pointer address.
kBool kHttpServerRequest_HasBody(kHttpServerRequest request)
Reports whether the request has an associated message body.
Represents a single unit (byte) in a UTF-8 character.
const kChar * kHttpServerRequest_FindHeaderValue(kHttpServerRequest request, const kChar *name)
Finds the header field value associated with the given header field name, if present.
const kChar * kHttpServerRequest_Uri(kHttpServerRequest request)
Returns a string representing the HTTP request URI (/resources/page.html).
kBool kHttpServerRequest_IsWebSocketUpgrade(kHttpServerRequest request)
Reports whether an upgrade to websocket protocol is requested.
kBool kHttpServerRequest_IsChunkCoded(kHttpServerRequest request)
Reports whether the message body is chunk-encoded.
const kChar * kHttpServerRequest_UriPath(kHttpServerRequest request)
Returns a string representing the HTTP request URI in absolute path form (/resources/page.html).
Represents an I/O stream.
Represents a 64-bit signed integer.
kPointer kHttpServerRequest_FirstHeader(kHttpServerRequest request)
Gets a reference to the first header.
IP networking definitions.
Represents a version number.
Represents an error code.
Represents a boolean value.
const kChar * kHttpServerRequest_HeaderValue(kHttpServerRequest request, kPointer header)
Gets the field value associated with a header reference.
Supports HTTP server request parsing.