proxygen
RFC2616.h File Reference
#include <folly/Optional.h>
#include <folly/Range.h>
#include <proxygen/lib/http/HTTPMethod.h>
#include <string>

Go to the source code of this file.

Namespaces

 proxygen
 
 proxygen::RFC2616
 

Typedefs

using proxygen::RFC2616::TokenQPair = std::pair< folly::StringPiece, double >
 

Enumerations

enum  proxygen::RFC2616::BodyAllowed { proxygen::RFC2616::BodyAllowed::DEFINED, proxygen::RFC2616::BodyAllowed::NOT_DEFINED, proxygen::RFC2616::BodyAllowed::NOT_ALLOWED }
 

Functions

BodyAllowed proxygen::RFC2616::isRequestBodyAllowed (folly::Optional< HTTPMethod > method)
 
bool proxygen::RFC2616::responseBodyMustBeEmpty (unsigned status)
 
bool proxygen::RFC2616::bodyImplied (const HTTPHeaders &headers)
 
bool proxygen::RFC2616::parseQvalues (folly::StringPiece value, std::vector< TokenQPair > &output)
 
bool proxygen::RFC2616::parseByteRangeSpec (folly::StringPiece value, unsigned long &outFirstByte, unsigned long &outLastByte, unsigned long &outInstanceLength)