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 "XrdOuc/XrdOucPrivateUtils.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 66 of file XrdHttpReq.cc.

◆ MAX_TK_LEN

#define MAX_TK_LEN   256

Definition at line 65 of file XrdHttpReq.cc.

◆ TRACELINK

#define TRACELINK   prot->Link

Definition at line 69 of file XrdHttpReq.cc.

Function Documentation

◆ ISOdatetime()

std::string ISOdatetime ( time_t  t)

Definition at line 82 of file XrdHttpReq.cc.

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

◆ trim()

void trim ( std::string &  str)

Definition at line 76 of file XrdHttpReq.cc.

77 {
78  XrdOucUtils::trim(str);
79 }
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: