Project
Loading...
Searching...
No Matches
HTTPParser.h File Reference
#include "Framework/Endian.h"
#include <fmt/format.h>
#include <uv.h>
#include <string>
#include <vector>
#include <map>

Go to the source code of this file.

Classes

struct  o2::framework::WebSocketConstants
 
struct  o2::framework::WebSocketHandler
 An handler for a websocket message stream. More...
 
struct  o2::framework::HTTPParser
 
struct  o2::framework::HTTPParserHelpers
 

Namespaces

namespace  o2
 a couple of static helper functions to create timestamp values for CCDB queries or override obsolete objects
 
namespace  o2::framework
 Defining PrimaryVertex explicitly as messageable.
 

Enumerations

enum struct  o2::framework::WebSocketFrameKind { o2::framework::Tiny , o2::framework::Short , o2::framework::Huge }
 
enum struct  o2::framework::WebSocketOpCode : uint8_t {
  o2::framework::Continuation = 0 , o2::framework::Text = 1 , o2::framework::Binary = 2 , o2::framework::Close = 8 ,
  o2::framework::Ping = 9 , o2::framework::Pong = 10
}
 
enum struct  o2::framework::HTTPState {
  o2::framework::IN_START , o2::framework::IN_START_REPLY , o2::framework::BEGIN_REPLY_VERSION , o2::framework::END_REPLY_VERSION ,
  o2::framework::BEGIN_REPLY_CODE , o2::framework::END_REPLY_CODE , o2::framework::BEGIN_REPLY_MESSAGE , o2::framework::END_REPLY_MESSAGE ,
  o2::framework::BEGIN_METHOD , o2::framework::END_METHOD , o2::framework::BEGIN_TARGET , o2::framework::END_TARGET ,
  o2::framework::BEGIN_VERSION , o2::framework::END_VERSION , o2::framework::BEGIN_HEADERS , o2::framework::BEGIN_HEADER ,
  o2::framework::BEGIN_HEADER_KEY , o2::framework::END_HEADER_KEY , o2::framework::BEGIN_HEADER_VALUE , o2::framework::END_HEADER_VALUE ,
  o2::framework::END_HEADER , o2::framework::END_HEADERS , o2::framework::BEGIN_BODY , o2::framework::IN_DONE ,
  o2::framework::IN_ERROR , o2::framework::IN_SKIP_CHARS , o2::framework::IN_CAPTURE_DELIMITERS , o2::framework::IN_CAPTURE_SEPARATOR ,
  o2::framework::IN_SEPARATOR , o2::framework::IN_CHUNKED
}
 

Functions

struct o2::framework::__attribute__ ((__packed__)) WebSocketFrameTiny
 
std::string o2::framework::encode_websocket_handshake_request (const char *endpoint, const char *protocol, int version, char const *nonce, std::vector< std::pair< std::string, std::string > > headers)
 
std::string o2::framework::encode_websocket_handshake_reply (char const *nonce)
 
void o2::framework::encode_websocket_frames (std::vector< uv_buf_t > &outputs, char const *src, size_t size, WebSocketOpCode opcode, uint32_t mask)
 
void o2::framework::decode_websocket (char *start, size_t size, WebSocketHandler &handler)
 
void o2::framework::parse_http_request (char *start, size_t size, HTTPParser *parser)
 
std::pair< std::string, unsigned shorto2::framework::parse_websocket_url (char const *url)