Zen API

- Home
- Topics
- Types
- Files

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
15 kBeginHeader()
16
17
23 //typedef kObject kHttpServerRequest; --forward-declared in kApiDef.x.h
24
25
32 kFx(const kChar*) kHttpServerRequest_Method(kHttpServerRequest request);
33
44 kFx(const kChar*) kHttpServerRequest_Uri(kHttpServerRequest request);
45
53 kFx(const kChar*) kHttpServerRequest_UriPath(kHttpServerRequest request);
54
62 kFx(kVersion) kHttpServerRequest_Version(kHttpServerRequest request);
63
74 kFx(kSize) kHttpServerRequest_HeaderCount(kHttpServerRequest request);
75
83 kFx(kPointer) kHttpServerRequest_FirstHeader(kHttpServerRequest request);
84
93 kFx(kPointer) kHttpServerRequest_NextHeader(kHttpServerRequest request, kPointer header);
94
106 kFx(const kChar*) kHttpServerRequest_HeaderName(kHttpServerRequest request, kPointer header);
107
116 kFx(const kChar*) kHttpServerRequest_HeaderValue(kHttpServerRequest request, kPointer header);
117
126 kFx(const kChar*) kHttpServerRequest_FindHeaderValue(kHttpServerRequest request, const kChar* name);
127
135 kFx(kBool) kHttpServerRequest_HasBody(kHttpServerRequest request);
136
144 kFx(kBool) kHttpServerRequest_IsChunkCoded(kHttpServerRequest request);
145
153 kFx(k64s) kHttpServerRequest_ContentLength(kHttpServerRequest request);
154
172 kFx(kStatus) kHttpServerRequest_BeginRead(kHttpServerRequest request, k64u* length, kStream* stream);
173
174 kEndHeader()
175
176 #include <kApi/Io/kHttpServerRequest.x.h>
177
178 #endif
kHttpServerRequest::kHttpServerRequest_HeaderName
const kChar * kHttpServerRequest_HeaderName(kHttpServerRequest request, kPointer header)
Gets the field name associated with a header reference.
kHttpServerRequest::kHttpServerRequest_ContentLength
k64s kHttpServerRequest_ContentLength(kHttpServerRequest request)
Reports the total message length for a simple (non-chunk-encoded) message.
kHttpServerRequest::kHttpServerRequest_Version
kVersion kHttpServerRequest_Version(kHttpServerRequest request)
Returns a value representing the HTTP version associated with this request.
k64u
Represents a 64-bit unsigned integer.
kPointer
Represents a void pointer.
kHttpServerRequest::kHttpServerRequest_HeaderCount
kSize kHttpServerRequest_HeaderCount(kHttpServerRequest request)
Returns the total count of headers parsed from this request.
kHttpServerRequest::kHttpServerRequest_BeginRead
kStatus kHttpServerRequest_BeginRead(kHttpServerRequest request, k64u *length, kStream *stream)
Begins reading the message body.
kHttpServerRequest::kHttpServerRequest_Method
const kChar * kHttpServerRequest_Method(kHttpServerRequest request)
Returns a string representing the HTTP request method (e.g.
kHttpServerRequest::kHttpServerRequest_NextHeader
kPointer kHttpServerRequest_NextHeader(kHttpServerRequest request, kPointer header)
Given a header reference, gets a reference to the next header.
kSize
Represents an unsigned integer that can store a pointer address.
kHttpServerRequest::kHttpServerRequest_HasBody
kBool kHttpServerRequest_HasBody(kHttpServerRequest request)
Reports whether the request has an associated message body.
kChar
Represents a single unit (byte) in a UTF-8 character.
kHttpServerRequest::kHttpServerRequest_FindHeaderValue
const kChar * kHttpServerRequest_FindHeaderValue(kHttpServerRequest request, const kChar *name)
Finds the header field value associated with the given header field name, if present.
kHttpServerRequest::kHttpServerRequest_Uri
const kChar * kHttpServerRequest_Uri(kHttpServerRequest request)
Returns a string representing the HTTP request URI (/resources/page.html).
kHttpServerRequest::kHttpServerRequest_IsChunkCoded
kBool kHttpServerRequest_IsChunkCoded(kHttpServerRequest request)
Reports whether the message body is chunk-encoded.
kHttpServerRequest::kHttpServerRequest_UriPath
const kChar * kHttpServerRequest_UriPath(kHttpServerRequest request)
Returns a string representing the HTTP request URI in absolute path form (/resources/page.html).
kStream
Represents an I/O stream.
k64s
Represents a 64-bit signed integer.
kHttpServerRequest::kHttpServerRequest_FirstHeader
kPointer kHttpServerRequest_FirstHeader(kHttpServerRequest request)
Gets a reference to the first header.
kNetwork.h
IP networking definitions.
kVersion
Represents a version number.
kStatus
Represents an error code.
kBool
Represents a boolean value.
kHttpServerRequest::kHttpServerRequest_HeaderValue
const kChar * kHttpServerRequest_HeaderValue(kHttpServerRequest request, kPointer header)
Gets the field value associated with a header reference.
kHttpServerRequest
Supports HTTP server request parsing.