XRootD
XrdHttpReq.cc File Reference

Main request/response class, handling the logical status of the communication. More...

#include "XrdVersion.hh"
#include "XrdHttpReq.hh"
#include "XrdHttpTrace.hh"
#include "XrdHttpExtHandler.hh"
#include <cstring>
#include <arpa/inet.h>
#include <sstream>
#include "XrdSys/XrdSysPlatform.hh"
#include "XrdOuc/XrdOucEnv.hh"
#include "XrdHttpProtocol.hh"
#include "Xrd/XrdLink.hh"
#include "XrdXrootd/XrdXrootdBridge.hh"
#include "Xrd/XrdBuffer.hh"
#include <algorithm>
#include <functional>
#include <cctype>
#include <locale>
#include <string>
#include "XrdOuc/XrdOucTUtils.hh"
#include "XrdOuc/XrdOucUtils.hh"
#include "XrdHttpUtils.hh"
#include "XrdHttpStatic.hh"
+ Include dependency graph for XrdHttpReq.cc:

Go to the source code of this file.

Macros

#define MAX_RESOURCE_LEN   16384
 
#define MAX_TK_LEN   256
 
#define TRACELINK   prot->Link
 

Functions

std::string ISOdatetime (time_t t)
 
void trim (std::string &str)
 

Detailed Description

Main request/response class, handling the logical status of the communication.

Author
Fabrizio Furano
Date
Nov 2012

Definition in file XrdHttpReq.cc.

Macro Definition Documentation

◆ MAX_RESOURCE_LEN

#define MAX_RESOURCE_LEN   16384

Definition at line 65 of file XrdHttpReq.cc.

◆ MAX_TK_LEN

#define MAX_TK_LEN   256

Definition at line 64 of file XrdHttpReq.cc.

◆ TRACELINK

#define TRACELINK   prot->Link

Definition at line 68 of file XrdHttpReq.cc.

Function Documentation

◆ ISOdatetime()

std::string ISOdatetime ( time_t  t)

Definition at line 81 of file XrdHttpReq.cc.

81  {
82  char datebuf[128];
83  struct tm t1;
84 
85  memset(&t1, 0, sizeof (t1));
86  gmtime_r(&t, &t1);
87 
88  strftime(datebuf, 127, "%a, %d %b %Y %H:%M:%S GMT", &t1);
89  return (std::string) datebuf;
90 
91 }

◆ trim()

void trim ( std::string &  str)

Definition at line 75 of file XrdHttpReq.cc.

76 {
77  XrdOucUtils::trim(str);
78 }
static void trim(std::string &str)

References XrdOucUtils::trim().

Referenced by XrdHttpExtReq::XrdHttpExtReq(), XrdOucBuffer::Clone(), XrdOfsCPFile::FName(), XrdOucGatherConf::Gather(), and XrdHttpReq::parseLine().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: