fastcgi++
A C++ FastCGI/Web API
Public Member Functions | Public Attributes | List of all members
Fastcgipp::Http::File< charT > Struct Template Reference

Holds a file uploaded from the client. More...

#include <fastcgi++/http.hpp>

Public Member Functions

 File (File &&x)
 Move constructor. More...
 
 File ()
 

Public Attributes

std::basic_string< charT > filename
 Filename. More...
 
std::basic_string< charT > contentType
 Content Type. More...
 
size_t size
 Size of file. More...
 
std::unique_ptr< char[]> data
 File data. More...
 

Detailed Description

template<class charT>
struct Fastcgipp::Http::File< charT >

Holds a file uploaded from the client.

The actual name associated with the file is omitted from the class so it can be linked in an associative container.

Template Parameters
charTType of character to use in the value string (char or wchar_t)
Date
May 3, 2017
Author
Eddie Carle <eddie.nosp@m.@isa.nosp@m.tec.c.nosp@m.a>

Definition at line 65 of file http.hpp.

Constructor & Destructor Documentation

template<class charT>
Fastcgipp::Http::File< charT >::File ( File< charT > &&  x)
inline

Move constructor.

Definition at line 80 of file http.hpp.

template<class charT>
Fastcgipp::Http::File< charT >::File ( )
inline

Definition at line 87 of file http.hpp.

Member Data Documentation

template<class charT>
std::basic_string<charT> Fastcgipp::Http::File< charT >::contentType

Content Type.

Definition at line 71 of file http.hpp.

Referenced by Fastcgipp::Http::Environment< charT >::parsePostsMultipart().

template<class charT>
std::unique_ptr<char[]> Fastcgipp::Http::File< charT >::data
mutable
template<class charT>
std::basic_string<charT> Fastcgipp::Http::File< charT >::filename

Filename.

Definition at line 68 of file http.hpp.

Referenced by Fastcgipp::Http::Environment< charT >::parsePostsMultipart().

template<class charT>
size_t Fastcgipp::Http::File< charT >::size

The documentation for this struct was generated from the following file: