Http::One Namespace Reference

Classes

class  Parser
 
class  RequestParser
 
class  ResponseParser
 
class  Server
 Manages a connection from an HTTP/1 or HTTP/0.9 client. More...
 
class  TeChunkedParser
 
class  Tokenizer
 

Typedefs

typedef RefCount< Http::One::ParserParserPointer
 
typedef RefCount< Http::One::RequestParserRequestParserPointer
 
typedef RefCount< Http::One::ResponseParserResponseParserPointer
 

Enumerations

enum  ParseState {
  HTTP_PARSE_NONE,
  HTTP_PARSE_FIRST,
  HTTP_PARSE_CHUNK_SZ,
  HTTP_PARSE_CHUNK_EXT,
  HTTP_PARSE_CHUNK,
  HTTP_PARSE_MIME,
  HTTP_PARSE_DONE
}
 

Functions

const SBufCrLf ()
 CRLF textual representation. More...
 
bool ParseBws (Tokenizer &tok)
 
int ErrorLevel ()
 the right debugs() level for logging HTTP violation messages More...
 

Typedef Documentation

◆ ParserPointer

Definition at line 20 of file forward.h.

◆ RequestParserPointer

◆ ResponseParserPointer

Enumeration Type Documentation

◆ ParseState

Enumerator
HTTP_PARSE_NONE 

initialized, but nothing usefully parsed yet

HTTP_PARSE_FIRST 

HTTP/1 message first-line.

HTTP_PARSE_CHUNK_SZ 

HTTP/1.1 chunked encoding chunk-size.

HTTP_PARSE_CHUNK_EXT 

HTTP/1.1 chunked encoding chunk-ext.

HTTP_PARSE_CHUNK 

HTTP/1.1 chunked encoding chunk-data.

HTTP_PARSE_MIME 

HTTP/1 mime-header block.

HTTP_PARSE_DONE 

parsed a message header, or reached a terminal syntax error

Definition at line 21 of file Parser.h.

Function Documentation

◆ CrLf()

const SBuf & Http::One::CrLf ( )

◆ ErrorLevel()

◆ ParseBws()

bool Http::One::ParseBws ( Tokenizer tok)

skips and, if needed, warns about RFC 7230 BWS ("bad" whitespace)

Returns
true (always; unlike all the skip*() functions)

Definition at line 276 of file Parser.cc.

References debugs, ErrorLevel(), Parser::Tokenizer::skipAll(), and Http::One::Parser::WhitespaceCharacters().

Referenced by Http::One::TeChunkedParser::parseChunkExtension().

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors