#include <XrdHttpTpcState.hh>
Public Types | |
| enum | ErrorCode { errNone = 0 , errWrite = 1 , errFlush = 2 , errClose = 3 , errTimeout = 10 } |
Public Member Functions | |
| State () | |
| State (CURL *curl, bool tpcForwardCreds) | |
| State (off_t start_offset, Stream &stream, CURL *curl, bool push, bool tpcForwardCreds) | |
| ~State () | |
| int | AvailableBuffers () const |
| bool | BodyTransferInProgress () const |
| off_t | BytesTransferred () const |
| void | DumpBuffers () const |
| State * | Duplicate () |
| bool | Finalize () |
| int | Flush () |
| std::string | GetConnectionDescription () |
| off_t | GetContentLength () const |
| int | GetErrorCode () const |
| std::string | GetErrorMessage () const |
| int | GetFinalizeErrorCode () const |
| std::string | GetFinalizeErrorMessage () const |
| CURL * | GetHandle () const |
| const std::map< std::string, std::string > & | GetReprDigest () const |
| int | GetStatusCode () const |
| void | Move (State &other) |
| void | ResetAfterRequest () |
| void | SetContentLength (const off_t content_length) |
| void | SetErrorCode (int error_code) |
| void | SetErrorMessage (const std::string &error_msg) |
| void | SetTransferParameters (off_t offset, size_t size) |
| void | SetupHeaders (XrdHttpExtReq &req) |
| void | SetupHeadersForHEAD (XrdHttpExtReq &req) |
Definition at line 21 of file XrdHttpTpcState.hh.
| Enumerator | |
|---|---|
| errNone | |
| errWrite | |
| errFlush | |
| errClose | |
| errTimeout | |
Definition at line 27 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 35 of file XrdHttpTpcState.hh.
Referenced by Duplicate(), and Move().
|
inline |
Don't use that constructor if you want to do some transfers.
| curl | the curl handle |
| tpcForwardCreds | set to true if the credentials needs to be forwarded for this request, false otherwise |
| push | set to true if this HEAD request is for a push transfer, false otherwise |
Definition at line 56 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 78 of file XrdHttpTpcState.hh.
| State::~State | ( | ) |
Definition at line 21 of file XrdHttpTpcState.cc.
| int State::AvailableBuffers | ( | ) | const |
Definition at line 379 of file XrdHttpTpcState.cc.
|
inline |
Definition at line 142 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 105 of file XrdHttpTpcState.hh.
| void State::DumpBuffers | ( | ) | const |
Definition at line 384 of file XrdHttpTpcState.cc.
| State * State::Duplicate | ( | ) |
Definition at line 347 of file XrdHttpTpcState.cc.
References State().
| bool State::Finalize | ( | ) |
Definition at line 389 of file XrdHttpTpcState.cc.
References errClose.
| int State::Flush | ( | ) |
Definition at line 318 of file XrdHttpTpcState.cc.
| std::string State::GetConnectionDescription | ( | ) |
Definition at line 398 of file XrdHttpTpcState.cc.
|
inline |
Definition at line 109 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 113 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 119 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 128 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 130 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 134 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 111 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 117 of file XrdHttpTpcState.hh.
| void State::Move | ( | State & | other | ) |
Definition at line 30 of file XrdHttpTpcState.cc.
References State().
| void State::ResetAfterRequest | ( | ) |
Definition at line 190 of file XrdHttpTpcState.cc.
|
inline |
Definition at line 107 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 115 of file XrdHttpTpcState.hh.
|
inline |
Definition at line 121 of file XrdHttpTpcState.hh.
| void State::SetTransferParameters | ( | off_t | offset, |
| size_t | size ) |
Definition at line 370 of file XrdHttpTpcState.cc.
| void State::SetupHeaders | ( | XrdHttpExtReq & | req | ) |
Setup any headers necessary for the GET/PUT operation
Currently includes:
Definition at line 99 of file XrdHttpTpcState.cc.
References XrdOucTUtils::caseInsensitiveFind(), XrdHttpExtReq::headers, and XrdHttpExtReq::mReprDigest.
| void State::SetupHeadersForHEAD | ( | XrdHttpExtReq & | req | ) |
Definition at line 155 of file XrdHttpTpcState.cc.
References XrdHttpExtReq::headers, and XrdHttpExtReq::mReprDigest.