From 0569d86c57dd9385556e4ab4792e74d552c9df59 Mon Sep 17 00:00:00 2001 From: "pfeldman@chromium.org" Date: Mon, 5 Jul 2010 11:32:40 +0000 Subject: Brushed up listen socket: - Upstreamed support for partial results from devtools' version - Made DidRead receive data and length (in order to support websockets data) - Fixed all the clients. Added net/server with http socket implementation that supports websockets. Will remove net/tools fetch client and server later. Review URL: http://codereview.chromium.org/2868036 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@51635 0039d316-1c4b-4281-b951-d872f2087c98 --- net/server/http_server_request_info.h | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 net/server/http_server_request_info.h (limited to 'net/server/http_server_request_info.h') diff --git a/net/server/http_server_request_info.h b/net/server/http_server_request_info.h new file mode 100644 index 0000000..64f0a78a --- /dev/null +++ b/net/server/http_server_request_info.h @@ -0,0 +1,34 @@ +// Copyright (c) 2010 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ +#define NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ + +#include + +#include "net/http/http_request_info.h" + +// Meta information about an HTTP request. +// This is geared toward servers in that it keeps a map of the headers and +// values rather than just a list of header strings (which net::HttpRequestInfo +// does). +class HttpServerRequestInfo { + public: + HttpServerRequestInfo() {} + + // Request method. + std::string method; + + // Request line. + std::string path; + + // Request data. + std::string data; + + // A map of the names -> values for HTTP headers. + typedef std::map HeadersMap; + HeadersMap headers; +}; + +#endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ -- cgit v1.1