A Discrete-Event Network Simulator
API
http.h File Reference
#include <string>
#include <unordered_map>
#include <cstdint>
#include <vector>
#include <sstream>
#include <algorithm>
#include "ns3/log.h"
+ Include dependency graph for http.h:

Go to the source code of this file.

Classes

class  ns3::HTTPMessage
 The basic class to represent both HTTP requests and responses. More...
 
class  ns3::HTTPMessageParser
 A basic class to parse a HTTP message, both request and response. More...
 

Namespaces

 ns3
 Every class exported by the ns3 library is enclosed in the ns3 namespace.
 

Enumerations

enum class  ns3::MessageParserState : uint8_t {
  ns3::NONE , ns3::PARSING_START_LINE , ns3::START_LINE_REQUEST , ns3::START_LINE_RESPONSE ,
  ns3::HEADER_KEY , ns3::HEADER_VALUE , ns3::PARSING_BODY
}
 An enum of states that the HTTPMessageParser can be in. More...
 

Variables

const std::string ns3::CarriageReturn = "\r\n"
 HTTP defines that any lines must be seperated with a carriage return. More...
 
const std::string ns3::HTTPVersion1 = "HTTP/1.0"
 The string for HTTP version 1.0. More...
 
const std::string ns3::HTTPVersion11 = "HTTP/1.1"
 The string for HTTP version 1.1. More...