#include <ossimHttpResponse.h>
Definition at line 21 of file ossimHttpResponse.h.
◆ ossimHttpResponse()
ossimHttpResponse::ossimHttpResponse |
( |
| ) |
|
|
inline |
Definition at line 24 of file ossimHttpResponse.h.
virtual void clear()
Clears out the Response and prepares for a new response.
ossimByteStreamBuffer m_headerBuffer
std::iostream m_bodyStream
ossimByteStreamBuffer m_bodyBuffer
std::iostream m_headerStream
◆ bodyBuffer() [1/2]
◆ bodyBuffer() [2/2]
◆ bodyStream()
std::iostream& ossimHttpResponse::bodyStream |
( |
| ) |
|
|
inline |
◆ clear()
virtual void ossimHttpResponse::clear |
( |
| ) |
|
|
inlinevirtual |
Clears out the Response and prepares for a new response.
Definition at line 45 of file ossimHttpResponse.h.
ossim_uint32 m_statusCode
ossimKeywordlist m_headerKwl
ossimByteStreamBuffer m_headerBuffer
ossimByteStreamBuffer m_bodyBuffer
◆ clearLastError()
virtual void ossimHttpResponse::clearLastError |
( |
| ) |
|
|
inlinevirtual |
◆ convertHeaderStreamToKeywordlist()
void ossimHttpResponse::convertHeaderStreamToKeywordlist |
( |
| ) |
|
This will parse out the response code from the status line and initialize the header variables into a keywordlist.
Definition at line 5 of file ossimHttpResponse.cpp.
References ossimKeywordlist::clear(), getline(), m_headerBuffer, m_headerKwl, m_statusCode, m_statusLine, ossimKeywordlist::parseStream(), ossimString::split(), and statusLine().
Referenced by ossimCurlHttpRequest::getContentLength(), ossimCurlHttpRequest::getResponse(), and ossim::CurlStreamBuffer::loadBlock().
19 std::vector<ossimString> statusLineArray;
21 if(statusLineArray.size() > 1)
ossim_uint32 m_statusCode
void split(std::vector< ossimString > &result, const ossimString &separatorList, bool skipBlankFields=false) const
Splits this string into a vector of strings (fields) using the delimiter list specified.
std::istream & getline(std::istream &is, ossimString &str, char delim)
ossimKeywordlist m_headerKwl
ossimByteStreamBuffer m_headerBuffer
const ossimString & statusLine() const
std::basic_istream< char > istream
Base class for char input streams.
virtual bool parseStream(ossim::istream &is, bool ignoreBinaryChars)
deprecated method
◆ getContentLength()
ossim_int64 ossimHttpResponse::getContentLength |
( |
| ) |
const |
◆ getHeaderValue()
◆ getInputStream()
virtual std::istream* ossimHttpResponse::getInputStream |
( |
| ) |
|
|
inlinevirtual |
This might have to change in the future if we start doing other protocols such as ftp scp, ...
etc.
We currently will return the main input stream that can be used to read the bytes returned from the request. If you need access to say a header stream from an http protocol then you can dynamic_cast to an ossimHttpResponse.
Implements ossimWebResponse.
Definition at line 39 of file ossimHttpResponse.h.
std::iostream m_bodyStream
std::basic_istream< char > istream
Base class for char input streams.
◆ getLastError()
virtual ossimString ossimHttpResponse::getLastError |
( |
| ) |
const |
|
inlinevirtual |
◆ getStatusCode()
◆ headerBuffer() [1/2]
◆ headerBuffer() [2/2]
◆ headerKwl() [1/2]
◆ headerKwl() [2/2]
◆ headerStream()
std::iostream& ossimHttpResponse::headerStream |
( |
| ) |
|
|
inline |
◆ statusLine()
const ossimString& ossimHttpResponse::statusLine |
( |
| ) |
const |
|
inline |
◆ m_bodyBuffer
◆ m_bodyStream
std::iostream ossimHttpResponse::m_bodyStream |
|
protected |
◆ m_headerBuffer
◆ m_headerKwl
◆ m_headerStream
std::iostream ossimHttpResponse::m_headerStream |
|
protected |
◆ m_statusCode
◆ m_statusLine
◆ TYPE_DATA
ossimHttpResponse::TYPE_DATA |
|
protected |
The documentation for this class was generated from the following files: