XRootD
Loading...
Searching...
No Matches
XrdClHttpFilesystem.cc File Reference
#include "XrdClHttpFactory.hh"
#include "XrdClHttpFilesystem.hh"
#include "XrdClHttpOps.hh"
#include "XrdClHttpResponses.hh"
#include "XrdClHttpTokenFileParser.hh"
#include "XrdCl/XrdClAnyObject.hh"
#include "XrdCl/XrdClDefaultEnv.hh"
#include "XrdCl/XrdClPropertyList.hh"
#include "XProtocol/XProtocol.hh"
#include <algorithm>
#include <cerrno>
#include <condition_variable>
#include <chrono>
#include <exception>
#include <memory>
#include <mutex>
#include <optional>
#include <string>
Include dependency graph for XrdClHttpFilesystem.cc:

Go to the source code of this file.

Namespaces

namespace  XrdClHttp
namespace  XrdClHttp::ThirdPartyCopyOpTypes

Typedefs

using XrdClHttp::ThirdPartyCopyOpTypes::CopyOp = CurlCopyOp
using XrdClHttp::ThirdPartyCopyOpTypes::StatOp = CurlStatOp

Functions

static bool is_http_url (const std::string &url)
static std::optional< std::size_t > XrdClHttp::stat_size (HandlerQueue &queue, const std::string &url, const CurlCopyOp::Headers &hdrs, time_t timeout, XrdCl::Log *log, const char *what)

Function Documentation

◆ is_http_url()

bool is_http_url ( const std::string & url)
static

Definition at line 404 of file XrdClHttpFilesystem.cc.

405{
406 const std::string protocol = XrdCl::URL(url).GetProtocol();
407 return protocol == "http" || protocol == "https" || protocol == "dav" || protocol == "davs";
408}
URL representation.
Definition XrdClURL.hh:31
const std::string & GetProtocol() const
Get the protocol.
Definition XrdClURL.hh:118

References XrdCl::URL::GetProtocol(), and is_http_url().

Referenced by is_http_url(), and XrdClHttp::Filesystem::ThirdPartyCopy().

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