C++ HTTP Stack
0.10
|
HTTP 메시지 클래스 더 자세히 ...
Public 멤버 함수 | |
CHttpMessage () | |
~CHttpMessage () | |
int | Parse (const char *pszText, int iTextLen) |
HTTP 메시지를 파싱한다. | |
int | ParseHeader (const char *pszText, int iTextLen) |
HTTP 메시지의 헤더를 파싱한다. | |
int | ToString (char *pszText, int iTextSize) |
HTTP 메시지 문자열을 생성한다. | |
void | Clear () |
내부 변수를 초기화시킨다. | |
bool | AddHeader (const char *pszName, const char *pszValue) |
HTTP 헤더 자료구조에 이름과 값을 추가한다. | |
bool | AddHeader (const char *pszName, int iValue) |
HTTP 헤더 자료구조에 이름과 값을 추가한다. | |
bool | UpdateHeader (const char *pszName, const char *pszValue) |
HTTP 헤더 자료구조에서 이름을 검색한 후, 해당 헤더가 존재하면 값을 수정한다. | |
bool | ReplaceHeader (const char *pszName, const char *pszValue) |
HTTP 헤더 자료구조에서 이름을 검색한 후, 해당 헤더가 존재하면 값을 수정하고 존재하지 않으면 새로 추가한다. | |
CHttpHeader * | GetHeader (const char *pszName) |
헤더 리스트를 검색하여서 입력된 이름과 일치하는 헤더를 리턴한다. | |
bool | SetRequest (const char *pszMethod, CHttpUri *pclsUri, const char *pszUserAgent=NULL) |
HTTP 요청 메시지에 기본적으로 입력되어야 할 내용을 추가한다. | |
bool | IsRequest () |
HTTP 요청 메시지인지 검사한다. |
Public 속성 | |
std::string | m_strHttpMethod |
HTTP 메소드 ( GET, POST ) | |
std::string | m_strReqUri |
HTTP request URI. | |
std::string | m_strHttpVersion |
HTTP version ( HTTP/1.1 ) | |
int | m_iStatusCode |
HTTP 응답 코드. | |
std::string | m_strReasonPhrase |
HTTP 응답 메시지 | |
std::string | m_strContentType |
HTTP Content-Type 헤더의 값 | |
int | m_iContentLength |
HTTP Content-Length 헤더의 값 | |
bool | m_bChunked |
body 의 chunked 여부 | |
HTTP_HEADER_LIST | m_clsHeaderList |
HTTP 헤더 리스트 | |
std::string | m_strBody |
HTTP body. |
HTTP 메시지 클래스
CHttpMessage::CHttpMessage | ( | ) |
CHttpMessage::~CHttpMessage | ( | ) |
bool CHttpMessage::m_bChunked |
body 의 chunked 여부
HTTP_HEADER_LIST CHttpMessage::m_clsHeaderList |
HTTP 헤더 리스트
int CHttpMessage::m_iContentLength |
HTTP Content-Length 헤더의 값
int CHttpMessage::m_iStatusCode |
HTTP 응답 코드.
HTTP 응답 메시지인 경우에만 0 보다 큰 값을 가지고 있다.
std::string CHttpMessage::m_strBody |
HTTP body.
std::string CHttpMessage::m_strContentType |
HTTP Content-Type 헤더의 값
std::string CHttpMessage::m_strHttpMethod |
HTTP 메소드 ( GET, POST )
std::string CHttpMessage::m_strHttpVersion |
HTTP version ( HTTP/1.1 )
std::string CHttpMessage::m_strReasonPhrase |
HTTP 응답 메시지
std::string CHttpMessage::m_strReqUri |
HTTP request URI.