Nebula
Loading...
Searching...
No Matches
httpresponsereader.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
13#include "io/streamreader.h"
14#include "http/httpstatus.h"
15#include "io/mediatype.h"
16
17//------------------------------------------------------------------------------
18namespace Http
19{
44
45//------------------------------------------------------------------------------
48inline bool
53
54//------------------------------------------------------------------------------
59{
60 return this->httpStatus;
61}
62
63//------------------------------------------------------------------------------
66inline const IO::MediaType&
68{
69 return this->contentType;
70}
71
72//------------------------------------------------------------------------------
75inline SizeT
77{
78 return this->contentLength;
79}
80
81} // namespace Http
82//------------------------------------------------------------------------------
83
84
Decodes a response header from a HTTP server and optionally writes received content data to a provide...
Definition httpresponsereader.h:21
HttpStatus::Code GetStatusCode() const
get the HTTP status code which was sent by the server
Definition httpresponsereader.h:58
HttpResponseReader()
constructor
Definition httpresponsereader.cc:20
const IO::MediaType & GetContentType() const
get content type
Definition httpresponsereader.h:67
SizeT GetContentLength() const
get content length
Definition httpresponsereader.h:76
IO::MediaType contentType
Definition httpresponsereader.h:41
__DeclareClass(HttpResponseReader)
bool IsValidHttpResponse() const
return true if this was a valid response
Definition httpresponsereader.h:49
HttpStatus::Code httpStatus
Definition httpresponsereader.h:40
SizeT contentLength
Definition httpresponsereader.h:42
bool isValidHttpResponse
Definition httpresponsereader.h:39
bool ReadResponse()
read the response
Definition httpresponsereader.cc:32
Code
status codes
Definition httpstatus.h:24
Encapsulates a MIME conformant media type description (text/plain, image/jpg, etc....
Definition mediatype.h:19
Stream reader classes provide a specialized read-interface for a stream.
Definition streamreader.h:24
This file was generated with Nebula Trifid's idlc compiler tool.
Definition defaulthttprequesthandler.cc:15
int SizeT
Definition types.h:49