5 #include <libutl/Array.h> 6 #include <libutl/BinaryData.h> 7 #include <libutl/Stream.h> 8 #include <libutl/StringVars.h> 51 header(
const char* name,
const char* value)
53 header(name,
String(value,
false));
57 void header(
const char* name,
const String& value);
69 _headersHT.setOwner(
false);
134 return header(
String(name,
false));
148 void printHeaders(
Stream& os)
const;
void deInit()
De-initialize UTL++.
HttpRequest(const char *request)
Constructor.
HttpResponse(uint16_t code, const char *text)
Constructor.
#define UTL_CLASS_DECL(DC, BC)
Declaration of standard UTL++ functionality for a non-template class.
const utl::Collection & headers() const
Get the collection of headers.
SortedCollection that stores objects in an array.
void header(const char *name, const char *value)
Add a unique header.
void copy(T *dest, const T *src, size_t len)
Copy one array of objects to another.
const String & statusText()
Get the status text.
const BinaryData * body() const
Get the response body.
const String & header(const char *name) const
Get the value of the given header.
unsigned short uint16_t
Unsigned 16-bit integer.
Chained hashing collection.
Root of UTL++ class hierarchy.
int compare(bool lhs, bool rhs)
Compare two boolean values.
void init()
Initialize UTL++.
const uint16_t statusCode()
Get the status code.