Crow  1.0
A C++ microframework for the web
crow::multipart Namespace Reference

Encapsulates anything related to processing and organizing multipart/xyz messages. More...

Classes

struct  header
 The first part in a section, contains metadata about the part. More...
 
struct  message
 The parsed multipart request/response. More...
 
struct  part
 One part of the multipart message. More...
 

Typedefs

using mph_map = std::unordered_multimap< std::string, header, ci_hash, ci_key_eq >
 Multipart header map (key is header key). More...
 
using mp_map = std::unordered_multimap< std::string, part, ci_hash, ci_key_eq >
 Multipart map (key is the name parameter). More...
 

Functions

template<typename O , typename T >
const O & get_header_value_object (const T &headers, const std::string &key)
 Find and return the value object associated with the key. (returns an empty class if nothing is found) More...
 
template<typename T >
const headerget_header_object (const T &headers, const std::string &key)
 Same as get_header_value_object() but for multipart::header. More...
 

Variables

const std::string dd = "--"
 

Detailed Description

Encapsulates anything related to processing and organizing multipart/xyz messages.

Typedef Documentation

◆ mph_map

using crow::multipart::mph_map = typedef std::unordered_multimap<std::string, header, ci_hash, ci_key_eq>

Multipart header map (key is header key).

◆ mp_map

using crow::multipart::mp_map = typedef std::unordered_multimap<std::string, part, ci_hash, ci_key_eq>

Multipart map (key is the name parameter).

Function Documentation

◆ get_header_value_object()

template<typename O , typename T >
const O& crow::multipart::get_header_value_object ( const T &  headers,
const std::string &  key 
)
inline

Find and return the value object associated with the key. (returns an empty class if nothing is found)

◆ get_header_object()

template<typename T >
const header& crow::multipart::get_header_object ( const T &  headers,
const std::string &  key 
)
inline

Same as get_header_value_object() but for multipart::header.

Here is the caller graph for this function:

Variable Documentation

◆ dd

const std::string crow::multipart::dd = "--"