Nebula
Loading...
Searching...
No Matches
httprequestwriter.h
Go to the documentation of this file.
1#pragma once
2//------------------------------------------------------------------------------
12#include "io/streamwriter.h"
13#include "http/httpmethod.h"
14
15//------------------------------------------------------------------------------
16namespace Http
17{
41
42//------------------------------------------------------------------------------
45inline void
50
51//------------------------------------------------------------------------------
54inline void
56{
57 this->uri = u;
58}
59
60//------------------------------------------------------------------------------
63inline void
65{
66 this->userAgent = agent;
67}
68
69} // namespace Http
70//------------------------------------------------------------------------------
Code
http methods
Definition httpmethod.h:24
Writes a valid HTTP request header to a stream.
Definition httprequestwriter.h:19
__DeclareClass(HttpRequestWriter)
IO::URI uri
Definition httprequestwriter.h:38
void SetUserAgent(const Util::String &userAgent)
set optional User-Agent string
Definition httprequestwriter.h:64
void SetURI(const IO::URI &uri)
set the URI of the request
Definition httprequestwriter.h:55
bool WriteRequestHeader()
write the request header to the stream
Definition httprequestwriter.cc:31
HttpMethod::Code httpMethod
Definition httprequestwriter.h:37
HttpRequestWriter()
constructor
Definition httprequestwriter.cc:20
Util::String userAgent
Definition httprequestwriter.h:39
bool WriteRequestHeaderWithBody(const Util::String &body)
write a body
Definition httprequestwriter.cc:71
void SetMethod(HttpMethod::Code httpMethod)
set HTTP Method
Definition httprequestwriter.h:46
Stream writer classes provide a specialized write-interface for a stream.
Definition streamwriter.h:22
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
Nebula's universal string class.
Definition string.h:50