Darknet/YOLO v3.0-88-gdee7eef
Object Detection Framework
 
Loading...
Searching...
No Matches
httplib Namespace Reference

Namespaces

namespace  detail
 

Classes

class  BufferStream
 
class  Client
 
struct  MultipartFile
 
struct  MultipartFormData
 
struct  Request
 
struct  Response
 
class  Server
 
class  SocketStream
 
class  Stream
 
class  TaskQueue
 
class  ThreadPool
 

Typedefs

using ContentProvider = std::function< void(size_t offset, size_t length, DataSink sink)>
 
using ContentProviderWithCloser = std::function< void(size_t offset, size_t length, DataSink sink, Done done)>
 
using ContentReader = std::function< bool(ContentReceiver receiver)>
 
using ContentReceiver = std::function< bool(const char *data, size_t data_length)>
 
using DataSink = std::function< void(const char *data, size_t data_len)>
 
using Done = std::function< void()>
 
using Headers = std::multimap< std::string, std::string, detail::ci >
 
using Match = std::smatch
 
using MultipartFiles = std::multimap< std::string, MultipartFile >
 
using MultipartFormDataItems = std::vector< MultipartFormData >
 
using Params = std::multimap< std::string, std::string >
 
using Progress = std::function< bool(uint64_t current, uint64_t total)>
 
using Range = std::pair< ssize_t, ssize_t >
 
using Ranges = std::vector< Range >
 
using ResponseHandler = std::function< bool(const Response &response)>
 

Enumerations

enum class  HttpVersion {
  v1_0 = 0 ,
  v1_1
}
 

Functions

void Get (std::vector< Request > &requests, const char *path)
 
void Get (std::vector< Request > &requests, const char *path, const Headers &headers)
 
std::pair< std::string, std::string > make_basic_authentication_header (const std::string &username, const std::string &password)
 
std::pair< std::string, std::string > make_range_header (Ranges ranges)
 
void Post (std::vector< Request > &requests, const char *path, const Headers &headers, const std::string &body, const char *content_type)
 
void Post (std::vector< Request > &requests, const char *path, const std::string &body, const char *content_type)
 

Typedef Documentation

◆ ContentProvider

using httplib::ContentProvider = typedef std::function<void(size_t offset, size_t length, DataSink sink)>

◆ ContentProviderWithCloser

using httplib::ContentProviderWithCloser = typedef std::function<void(size_t offset, size_t length, DataSink sink, Done done)>

◆ ContentReader

using httplib::ContentReader = typedef std::function<bool(ContentReceiver receiver)>

◆ ContentReceiver

using httplib::ContentReceiver = typedef std::function<bool(const char *data, size_t data_length)>

◆ DataSink

using httplib::DataSink = typedef std::function<void(const char *data, size_t data_len)>

◆ Done

using httplib::Done = typedef std::function<void()>

◆ Headers

using httplib::Headers = typedef std::multimap<std::string, std::string, detail::ci>

◆ Match

using httplib::Match = typedef std::smatch

◆ MultipartFiles

using httplib::MultipartFiles = typedef std::multimap<std::string, MultipartFile>

◆ MultipartFormDataItems

using httplib::MultipartFormDataItems = typedef std::vector<MultipartFormData>

◆ Params

using httplib::Params = typedef std::multimap<std::string, std::string>

◆ Progress

using httplib::Progress = typedef std::function<bool(uint64_t current, uint64_t total)>

◆ Range

using httplib::Range = typedef std::pair<ssize_t, ssize_t>

◆ Ranges

using httplib::Ranges = typedef std::vector<Range>

◆ ResponseHandler

using httplib::ResponseHandler = typedef std::function<bool(const Response &response)>

Enumeration Type Documentation

◆ HttpVersion

enum class httplib::HttpVersion
strong
Enumerator
v1_0 
v1_1 

Function Documentation

◆ Get() [1/2]

void httplib::Get ( std::vector< Request > &  requests,
const char *  path 
)
inline
Here is the call graph for this function:

◆ Get() [2/2]

void httplib::Get ( std::vector< Request > &  requests,
const char *  path,
const Headers headers 
)
inline
Here is the caller graph for this function:

◆ make_basic_authentication_header()

std::pair< std::string, std::string > httplib::make_basic_authentication_header ( const std::string &  username,
const std::string &  password 
)
inline
Here is the call graph for this function:

◆ make_range_header()

std::pair< std::string, std::string > httplib::make_range_header ( Ranges  ranges)
inline

◆ Post() [1/2]

void httplib::Post ( std::vector< Request > &  requests,
const char *  path,
const Headers headers,
const std::string &  body,
const char *  content_type 
)
inline
Here is the caller graph for this function:

◆ Post() [2/2]

void httplib::Post ( std::vector< Request > &  requests,
const char *  path,
const std::string &  body,
const char *  content_type 
)
inline
Here is the call graph for this function: