Http::One Namespace Reference

Classes

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

Typedefs

typedef RefCount
< Http::One::Parser
ParserPointer
 
typedef RefCount
< Http::One::RequestParser
RequestParserPointer
 
typedef RefCount
< Http::One::ResponseParser
ResponseParserPointer
 

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

Definition at line 20 of file forward.h.

Enumeration Type Documentation

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

const SBuf & Http::One::CrLf ( )
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