diff options
author | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-05 11:32:40 +0000 |
---|---|---|
committer | pfeldman@chromium.org <pfeldman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-05 11:32:40 +0000 |
commit | 0569d86c57dd9385556e4ab4792e74d552c9df59 (patch) | |
tree | b197fd2a9f1296b7ba49601ba0f31b3ba540de1a /net/server/http_server_request_info.h | |
parent | ca311ce0f5002da40625bf87a24858d294d1d1bc (diff) | |
download | chromium_src-0569d86c57dd9385556e4ab4792e74d552c9df59.zip chromium_src-0569d86c57dd9385556e4ab4792e74d552c9df59.tar.gz chromium_src-0569d86c57dd9385556e4ab4792e74d552c9df59.tar.bz2 |
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
Diffstat (limited to 'net/server/http_server_request_info.h')
-rw-r--r-- | net/server/http_server_request_info.h | 34 |
1 files changed, 34 insertions, 0 deletions
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 <string> + +#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<std::string, std::string> HeadersMap; + HeadersMap headers; +}; + +#endif // NET_SERVER_HTTP_SERVER_REQUEST_INFO_H_ |