apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

RequestState Struct Reference

#include <basehttp.h>

Collaboration diagram for RequestState:
[legend]

Public Types

enum  { Chunked , Stream , Closes }
 
enum  { Header , Data }
 

Public Member Functions

bool HeaderLine (std::string const &Line)
 
bool AddPartialFileToHashes (FileFd &File)
 
 RequestState (BaseHttpMethod *const Owner, ServerState *const Server)
 

Public Attributes

unsigned int Major = 0
 
unsigned int Minor = 0
 
unsigned int Result = 0
 
char Code [360]
 
unsigned long long TotalFileSize = 0
 
unsigned long long DownloadSize = 0
 
unsigned long long JunkSize = 0
 
unsigned long long StartPos = 0
 
unsigned long long MaximumSize = 0
 
time_t Date
 
bool HaveContent = false
 
enum RequestState:: { ... }  Encoding = Closes
 
enum RequestState:: { ... }  State = Header
 
std::string Location
 
FileFd File
 
BaseHttpMethod *const Owner
 
ServerState *const Server
 

Detailed Description

Definition at line 30 of file basehttp.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
Enumerator
Chunked 
Stream 
Closes 

Definition at line 50 of file basehttp.h.

◆ anonymous enum

anonymous enum
Enumerator
Header 
Data 

Definition at line 51 of file basehttp.h.

Constructor & Destructor Documentation

◆ RequestState()

RequestState ( BaseHttpMethod *const  Owner,
ServerState *const  Server 
)
inline

Definition at line 62 of file basehttp.h.

References Code, and Date.

Member Function Documentation

◆ AddPartialFileToHashes()

bool AddPartialFileToHashes ( FileFd File)

◆ HeaderLine()

Member Data Documentation

◆ Code

char Code[360]

Definition at line 35 of file basehttp.h.

Referenced by BaseHttpMethod::DealWithHeaders(), HeaderLine(), and RequestState().

◆ Date

◆ DownloadSize

unsigned long long DownloadSize = 0

Definition at line 40 of file basehttp.h.

Referenced by HeaderLine(), BaseHttpMethod::Loop(), and HttpServerState::RunData().

◆ 

Encoding { ... } enum

◆ File

◆ HaveContent

bool HaveContent = false

◆ JunkSize

unsigned long long JunkSize = 0

Definition at line 42 of file basehttp.h.

Referenced by HeaderLine(), and HttpServerState::RunData().

◆ Location

std::string Location

Definition at line 52 of file basehttp.h.

Referenced by BaseHttpMethod::DealWithHeaders(), and HeaderLine().

◆ Major

unsigned int Major = 0

Definition at line 32 of file basehttp.h.

Referenced by HeaderLine().

◆ MaximumSize

unsigned long long MaximumSize = 0

Definition at line 46 of file basehttp.h.

Referenced by HttpServerState::Go(), BaseHttpMethod::Loop(), and HttpServerState::RunData().

◆ Minor

unsigned int Minor = 0

Definition at line 33 of file basehttp.h.

Referenced by HeaderLine().

◆ Owner

BaseHttpMethod* const Owner

Definition at line 56 of file basehttp.h.

Referenced by HeaderLine().

◆ Result

unsigned int Result = 0

◆ Server

ServerState* const Server

Definition at line 57 of file basehttp.h.

Referenced by AddPartialFileToHashes(), and HeaderLine().

◆ StartPos

unsigned long long StartPos = 0

◆ 

State { ... } enum

◆ TotalFileSize

unsigned long long TotalFileSize = 0

Definition at line 38 of file basehttp.h.

Referenced by BaseHttpMethod::DealWithHeaders(), and HeaderLine().


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