#include <OW_HTTPChunkedOStream.hpp>
Inheritance diagram for OW_NAMESPACE::HTTPChunkedOStream:


Public Types | |
| enum | ESendLastChunkFlag { E_DISCARD_LAST_CHUNK, E_SEND_LAST_CHUNK } |
Public Member Functions | |
| HTTPChunkedOStream (std::ostream &ostr) | |
| Convert a ostream to a HTTPChunkedOStream. | |
| ~HTTPChunkedOStream () | |
| void | termOutput (ESendLastChunkFlag sendLastChunk=E_SEND_LAST_CHUNK) |
| Call this when the entity has been completely sent. | |
| std::ostream & | getOutputStreamOrig () |
| Get the original ostream&. | |
| void | addTrailer (const String &key, const String &value) |
| Add a HTTP trailer (header at the end of a chunked entity). | |
Private Member Functions | |
| HTTPChunkedOStream (const HTTPChunkedOStream &) | |
| HTTPChunkedOStream & | operator= (const HTTPChunkedOStream &) |
Private Attributes | |
| std::ostream & | m_ostr |
| Array< String > | m_trailers |
Definition at line 80 of file OW_HTTPChunkedOStream.hpp.
|
|
Definition at line 94 of file OW_HTTPChunkedOStream.hpp. |
|
|
Convert a ostream to a HTTPChunkedOStream. The ostream that is passed in is wrapped. All output sent to the new stream is chunked, and then passed to the original stream.
|
|
|
Definition at line 97 of file OW_HTTPChunkedOStream.cpp. |
|
|
|
|
||||||||||||
|
Add a HTTP trailer (header at the end of a chunked entity).
Definition at line 128 of file OW_HTTPChunkedOStream.cpp. References OW_NAMESPACE::String::empty(), m_trailers, OW_NAMESPACE::Array< T >::push_back(), and OW_NAMESPACE::String::trim(). |
|
|
Get the original ostream&.
Definition at line 108 of file OW_HTTPChunkedOStream.hpp. |
|
|
|
|
|
Call this when the entity has been completely sent. This flushes the remaining output, and sends a zero length chunk, signalling the end of the entity. Definition at line 102 of file OW_HTTPChunkedOStream.cpp. References E_DISCARD_LAST_CHUNK, i, OW_NAMESPACE::BaseStreamBuffer::initPutBuffer(), m_ostr, OW_NAMESPACE::HTTPChunkedOStreamBase::m_strbuf, m_trailers, and OW_NAMESPACE::Array< T >::size(). |
|
|
Definition at line 116 of file OW_HTTPChunkedOStream.hpp. Referenced by termOutput(). |
|
|
Definition at line 123 of file OW_HTTPChunkedOStream.hpp. Referenced by addTrailer(), and termOutput(). |
1.4.6