+// ***************************************************************************
+// HttpHeader_p.h (c) 2011 Derek Barnett
+// Marth Lab, Department of Biology, Boston College
+// ---------------------------------------------------------------------------
+// Last modified: 13 January 2012 (DB)
+// ---------------------------------------------------------------------------
+// Provides a generic interface for parsing/generating HTTP headers, along
+// with specialized request & response header types
+// ***************************************************************************
+
#ifndef HTTP_HEADER_P_H
#define HTTP_HEADER_P_H
+// -------------
+// W A R N I N G
+// -------------
+//
+// This file is not part of the BamTools API. It exists purely as an
+// implementation detail. This header file may change from version to version
+// without notice, or even be removed.
+//
+// We mean it.
+
#include "api/api_global.h"
#include <map>
#include <string>
// header field=>value access
bool ContainsKey(const std::string& key) const;
- std::string GetValue(const std::string& key) const;
+ std::string GetValue(const std::string& key);
void RemoveField(const std::string& key);
void SetField(const std::string& key, const std::string& value);
// ctor & dtor
public:
- HttpRequestHeader(const std::string& method, // "GET", "PUT", etc
+ HttpRequestHeader(const std::string& method, // "GET", "HEAD", ...
const std::string& resource, // filename
int majorVersion = 1, // version info
int minorVersion = 1);