Nebula
Loading...
Searching...
No Matches
httprequestreader.h
Go to the documentation of this file.
1#pragma once
2#ifndef HTTP_HTTPREQUESTREADER_H
3#define HTTP_HTTPREQUESTREADER_H
4//------------------------------------------------------------------------------
14#include "io/streamreader.h"
15#include "http/httpmethod.h"
16#include "io/uri.h"
17
18//------------------------------------------------------------------------------
19namespace Http
20{
41
42//------------------------------------------------------------------------------
45inline bool
50
51//------------------------------------------------------------------------------
56{
57 return this->httpMethod;
58}
59
60//------------------------------------------------------------------------------
63inline const IO::URI&
65{
66 return this->requestURI;
67}
68
69} // namespace Http
70//------------------------------------------------------------------------------
71#endif
Code
http methods
Definition httpmethod.h:24
A stream reader which cracks a HTTP request into its components.
Definition httprequestreader.h:22
HttpMethod::Code httpMethod
Definition httprequestreader.h:38
HttpRequestReader()
constructor
Definition httprequestreader.cc:20
bool IsValidHttpRequest() const
return true if the stream contains a valid HTTP request
Definition httprequestreader.h:46
bool isValidHttpRequest
Definition httprequestreader.h:37
__DeclareClass(HttpRequestReader)
HttpMethod::Code GetHttpMethod() const
get HTTP request method
Definition httprequestreader.h:55
bool ReadRequest()
decode the request from the stream (call first before Get methods!)
Definition httprequestreader.cc:31
IO::URI requestURI
Definition httprequestreader.h:39
const IO::URI & GetRequestURI() const
get request URI
Definition httprequestreader.h:64
Stream reader classes provide a specialized read-interface for a stream.
Definition streamreader.h:24
An URI object can split a Uniform Resource Identifier string into its components or build a string fr...
Definition uri.h:67
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15