this represents a HTTP request object for the WebServer module More...
#include <Request.h>
Public Member Functions | |
nonvirtual Memory::BLOB | GetBody () |
nonvirtual DataExchange::VariantValue | GetBodyVariantValue () |
nonvirtual Streams::InputStream::Ptr< byte > | GetInputStream () |
nonvirtual Streams::InputStream::Ptr< byte > | GetBodyStream () |
nonvirtual String | ToString () const |
![]() | |
nonvirtual String | ToString () const |
Public Attributes | |
Common::ReadOnlyProperty< bool > | keepAliveRequested |
mostly looks at Connection: ARG header, but if not there takes into account HTTP-version specific defaults. | |
![]() | |
Common::Property< String > | httpVersion |
Common::Property< String > | httpMethod |
typically HTTP::Methods::kGet | |
Common::Property< URI > | url |
Common::ReadOnlyProperty< const Headers & > | headers |
Common::Property< Headers & > | rwHeaders |
Common::ReadOnlyProperty< optional< InternetMediaType > > | contentType |
this represents a HTTP request object for the WebServer module
TODO:
Definition at line 44 of file Frameworks/WebServer/Request.h.
Memory::BLOB Request::GetBody | ( | ) |
Quicky impl. Need to improve this significantly. Can call multiple times - but first time it blocks fetching data
Definition at line 65 of file Frameworks/WebServer/Request.cpp.
DataExchange::VariantValue Request::GetBodyVariantValue | ( | ) |
Check the content-type of the argument (with InternetMediaTypesRegistry::IsA - so matches sub-types) and select the appropriate parser to return the body as a VariantValue.
Definition at line 77 of file Frameworks/WebServer/Request.cpp.
Streams::InputStream::Ptr< byte > Stroika::Frameworks::WebServer::Request::GetInputStream | ( | ) |
Definition at line 25 of file Frameworks/WebServer/Request.inl.
Streams::InputStream::Ptr< byte > Request::GetBodyStream | ( | ) |
This returns a (generally unseekable) stream of bytes. In most cases, this stream will be artificially narrowed to just the body part of the request. When a Content-Length is known, that is used to limit the stream. When a Transfer-Coding is used, that will return the apparent (decoded) bytes (NYI).
Definition at line 91 of file Frameworks/WebServer/Request.cpp.
String Request::ToString | ( | ) | const |
Definition at line 126 of file Frameworks/WebServer/Request.cpp.