PACS System 0.1.0
PACS DICOM system library
Loading...
Searching...
No Matches
http_client.cpp File Reference

libcurl HTTPS client with RAII over CURL* and curl_slist*. More...

#include "http_client.h"
#include <curl/curl.h>
#include <cstddef>
#include <memory>
#include <mutex>
#include <string>
#include <string_view>
#include <utility>
Include dependency graph for http_client.cpp:

Go to the source code of this file.

Namespaces

namespace  kcenon
 
namespace  kcenon::pacs
 
namespace  kcenon::pacs::ihe
 
namespace  kcenon::pacs::ihe::xds
 
namespace  kcenon::pacs::ihe::xds::detail
 

Functions

void kcenon::pacs::ihe::xds::detail::set_http_transport_override (transport_override fn)
 
void kcenon::pacs::ihe::xds::detail::clear_http_transport_override ()
 
kcenon::common::Result< http_response > kcenon::pacs::ihe::xds::detail::http_post (const http_options &opts, const std::string &content_type, const std::string &body)
 POST body to opts.endpoint with the given Content-Type.
 

Detailed Description

libcurl HTTPS client with RAII over CURL* and curl_slist*.

Definition in file http_client.cpp.

Variable Documentation

◆ buffer

std::string buffer

Definition at line 56 of file http_client.cpp.

Referenced by kcenon::pacs::network::pdu_buffer_pool::acquire_buffer(), kcenon::pacs::web::auth::base64url_decode(), kcenon::pacs::encoding::explicit_vr_big_endian_codec::encode(), kcenon::pacs::encoding::explicit_vr_codec::encode(), kcenon::pacs::encoding::implicit_vr_codec::encode(), kcenon::pacs::network::pdu_encoder::encode_abort(), kcenon::pacs::network::pdu_encoder::encode_application_context(), kcenon::pacs::network::pdu_encoder::encode_associate_ac(), kcenon::pacs::network::pdu_encoder::encode_associate_header(), kcenon::pacs::network::pdu_encoder::encode_associate_rj(), kcenon::pacs::network::pdu_encoder::encode_associate_rq(), kcenon::pacs::encoding::explicit_vr_big_endian_codec::encode_element(), kcenon::pacs::encoding::explicit_vr_codec::encode_element(), kcenon::pacs::encoding::implicit_vr_codec::encode_element(), kcenon::pacs::network::pdu_encoder::encode_p_data_tf(), kcenon::pacs::network::pdu_encoder::encode_presentation_context_ac(), kcenon::pacs::network::pdu_encoder::encode_presentation_context_rq(), kcenon::pacs::network::pdu_encoder::encode_release_rp(), kcenon::pacs::network::pdu_encoder::encode_release_rq(), kcenon::pacs::encoding::explicit_vr_big_endian_codec::encode_sequence(), kcenon::pacs::encoding::explicit_vr_codec::encode_sequence(), kcenon::pacs::encoding::implicit_vr_codec::encode_sequence(), kcenon::pacs::encoding::explicit_vr_big_endian_codec::encode_sequence_item(), kcenon::pacs::encoding::explicit_vr_codec::encode_sequence_item(), kcenon::pacs::encoding::implicit_vr_codec::encode_sequence_item(), kcenon::pacs::network::pdu_encoder::encode_user_information(), kcenon::pacs::web::thumbnail_service::generate_thumbnail(), kcenon::pacs::samples::config_loader::load(), kcenon::pacs::network::make_pooled_pdu_buffer(), kcenon::pacs::integration::dicom_session::parse_pdu_header(), kcenon::pacs::workflow::auto_prefetch_service::query_prior_studies(), http_client::send_request(), kcenon::pacs::network::pdu_encoder::update_pdu_length(), kcenon::pacs::network::pdu_encoder::write_ae_title(), kcenon::pacs::encoding::write_be16(), kcenon::pacs::encoding::write_be32(), kcenon::pacs::encoding::write_be64(), kcenon::pacs::network::pdu_encoder::write_uid(), kcenon::pacs::network::pdu_encoder::write_uint16_be(), and kcenon::pacs::network::pdu_encoder::write_uint32_be().

◆ content_type

◆ oversize

bool oversize {false}

Definition at line 58 of file http_client.cpp.

58{false};