Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
kHttpServerRequest.h
Go to the documentation of this file.
1 
10 #ifndef K_API_HTTP_SERVER_REQUEST_H
11 #define K_API_HTTP_SERVER_REQUEST_H
12 
13 #include <kApi/Io/kNetwork.h>
14 #include <kApi/Io/kHttpServerRequest.x.h>
15 
22 //typedef kObject kHttpServerRequest; --forward-declared in kApiDef.x.h
23 
32 
43 kFx(const kChar*) kHttpServerRequest_Uri(kHttpServerRequest request);
44 
53 
62 
74 
83 
93 
105 kFx(const kChar*) kHttpServerRequest_HeaderName(kHttpServerRequest request, kPointer header);
106 
116 
125 kFx(const kChar*) kHttpServerRequest_FindHeaderValue(kHttpServerRequest request, const kChar* name);
126 
135 
144 
153 
162 
180 kFx(kStatus) kHttpServerRequest_BeginRead(kHttpServerRequest request, k64u* length, kStream* stream);
181 
182 #endif
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.