/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* HttpResponse.cpp :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: mmoussou _protocol << " " << this->_status_code << " " << this->_status_text; response << "\r\n"; for (std::multimap::const_iterator it = this->_headers.begin(); it != this->_headers.end(); ++it) response << it->first << ": " << it->second << "\r\n"; response << "\r\n"; response << this->_body; return (response.str()); } std::string http::Response::getProtocol(void) const { return (this->_protocol); } size_t http::Response::getStatusCode(void) const { return (this->_status_code); } std::string http::Response::getStatusText(void) const { return (this->_status_text); } void http::Response::setProtocol(std::string const protocol) { this->_protocol = protocol; } void http::Response::setStatusCode(size_t const status_code) { this->_status_code = status_code; } void http::Response::setStatusText(std::string const status_text) { this->_status_text = status_text; }