#include "net/server/http_server_response_info.h"
#include "base/check.h"
#include "base/format_macros.h"
#include "base/strings/stringprintf.h"
#include "net/http/http_request_headers.h"
namespace net {
HttpServerResponseInfo::HttpServerResponseInfo() : … { … }
HttpServerResponseInfo::HttpServerResponseInfo(HttpStatusCode status_code)
: … { … }
HttpServerResponseInfo::HttpServerResponseInfo(
const HttpServerResponseInfo& other) = default;
HttpServerResponseInfo::~HttpServerResponseInfo() = default;
HttpServerResponseInfo HttpServerResponseInfo::CreateFor404() { … }
HttpServerResponseInfo HttpServerResponseInfo::CreateFor500(
const std::string& body) { … }
void HttpServerResponseInfo::AddHeader(const std::string& name,
const std::string& value) { … }
void HttpServerResponseInfo::SetBody(const std::string& body,
const std::string& content_type) { … }
void HttpServerResponseInfo::SetContentHeaders(
size_t content_length,
const std::string& content_type) { … }
std::string HttpServerResponseInfo::Serialize() const { … }
HttpStatusCode HttpServerResponseInfo::status_code() const { … }
const std::string& HttpServerResponseInfo::body() const { … }
}