![]() |
Prusa Slicer 2.6.0
|
Represetns a Http request. More...
#include <src/slic3r/Utils/Http.hpp>
Inheritance diagram for Slic3r::Http:
Collaboration diagram for Slic3r::Http:Classes | |
| struct | priv |
| struct | Progress |
Public Types | |
| typedef std::shared_ptr< Http > | Ptr |
| typedef std::function< void(std::string, unsigned)> | CompleteFn |
| typedef std::function< void(std::string, std::string, unsigned)> | ErrorFn |
| typedef std::function< void(Progress, bool &)> | ProgressFn |
| typedef std::function< void(std::string)> | IPResolveFn |
Public Member Functions | |
| Http (Http &&other) | |
| ~Http () | |
| Http (const Http &)=delete | |
| Http & | operator= (const Http &)=delete |
| Http & | operator= (Http &&)=delete |
| Http & | timeout_connect (long timeout) |
| Http & | timeout_max (long timeout) |
| Http & | size_limit (size_t sizeLimit) |
| Http & | set_range (const std::string &range) |
| Http & | header (std::string name, const std::string &value) |
| Http & | remove_header (std::string name) |
| Http & | auth_digest (const std::string &user, const std::string &password) |
| Http & | auth_basic (const std::string &user, const std::string &password) |
| Http & | ca_file (const std::string &filename) |
| Http & | form_add (const std::string &name, const std::string &contents) |
| Http & | form_add_file (const std::string &name, const boost::filesystem::path &path) |
| Http & | form_add_file (const std::string &name, const boost::filesystem::path &path, const std::string &filename) |
| Http & | set_post_body (const boost::filesystem::path &path) |
| Http & | set_post_body (const std::string &body) |
| Http & | set_put_body (const boost::filesystem::path &path) |
| Http & | on_complete (CompleteFn fn) |
| Http & | on_error (ErrorFn fn) |
| Http & | on_progress (ProgressFn fn) |
| Http & | on_ip_resolve (IPResolveFn fn) |
| Ptr | perform () |
| void | perform_sync () |
| void | cancel () |
Static Public Member Functions | |
| static Http | get (std::string url) |
| static Http | post (std::string url) |
| static Http | put (std::string url) |
| static bool | ca_file_supported () |
| static std::string | tls_global_init () |
| static std::string | tls_system_cert_store () |
| static std::string | url_encode (const std::string &str) |
Private Member Functions | |
| Http (const std::string &url) | |
Private Attributes | |
| std::unique_ptr< priv > | p |
Represetns a Http request.
| typedef std::function<void(std::string , unsigned )> Slic3r::Http::CompleteFn |
| typedef std::function<void(std::string , std::string , unsigned )> Slic3r::Http::ErrorFn |
| typedef std::function<void(std::string)> Slic3r::Http::IPResolveFn |
| typedef std::function<void(Progress, bool& )> Slic3r::Http::ProgressFn |
| typedef std::shared_ptr<Http> Slic3r::Http::Ptr |
| Slic3r::Http::~Http | ( | ) |
|
private |
References p.
Referenced by Slic3r::PrusaLink::set_auth().
Here is the caller graph for this function:References Slic3r::Http::priv::ca_file_supported(), and p.
Referenced by Slic3r::AstroBox::set_auth(), Slic3r::Moonraker::set_auth(), Slic3r::OctoPrint::set_auth(), Slic3r::Repetier::set_auth(), and Slic3r::PrusaLink::set_auth().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
References Slic3r::Http::priv::ca_file_supported().
Referenced by Slic3r::GUI::PhysicalPrinterDialog::build_printhost_settings().
Here is the call graph for this function:
Here is the caller graph for this function:| void Slic3r::Http::cancel | ( | ) |
References p.
Referenced by Slic3r::Http::priv::http_perform().
Here is the caller graph for this function:References p.
Referenced by Slic3r::PrusaLink::post_inner(), Slic3r::PrusaLink::set_http_post_header_args(), and Slic3r::PrusaConnect::set_http_post_header_args().
Here is the caller graph for this function:| Http & Slic3r::Http::form_add_file | ( | const std::string & | name, |
| const boost::filesystem::path & | path, | ||
| const std::string & | filename | ||
| ) |
|
static |
Referenced by Slic3r::Duet::connect(), Slic3r::Duet::disconnect(), Slic3r::PresetUpdater::priv::get_file(), Slic3r::Repetier::get_groups(), Slic3r::GUI::FileGet::priv::get_perform(), Slic3r::Repetier::get_printers(), Slic3r::PrusaLink::get_storage(), Slic3r::AppUpdater::priv::http_get_file(), Slic3r::Duet::start_print(), Slic3r::AstroBox::test(), Slic3r::FlashAir::test(), Slic3r::Moonraker::test(), Slic3r::OctoPrint::test(), Slic3r::PrusaLink::test(), Slic3r::Repetier::test(), Slic3r::PrusaLink::test_with_method_check(), and Slic3r::FlashAir::upload().
Here is the caller graph for this function:References p.
Referenced by Slic3r::PrusaLink::post_inner(), Slic3r::PrusaLink::put_inner(), Slic3r::GUI::SendSystemInfoDialog::send_info(), Slic3r::AstroBox::set_auth(), Slic3r::Moonraker::set_auth(), Slic3r::OctoPrint::set_auth(), Slic3r::Repetier::set_auth(), Slic3r::PrusaLink::set_auth(), and Slic3r::PrusaConnect::set_http_post_header_args().
Here is the caller graph for this function:| Http & Slic3r::Http::on_complete | ( | CompleteFn | fn | ) |
References p.
Referenced by Slic3r::PrusaLink::post_inner(), Slic3r::PrusaLink::put_inner(), and Slic3r::GUI::SendSystemInfoDialog::send_info().
Here is the caller graph for this function:| Http & Slic3r::Http::on_ip_resolve | ( | IPResolveFn | fn | ) |
| Http & Slic3r::Http::on_progress | ( | ProgressFn | fn | ) |
References p.
Referenced by Slic3r::PresetUpdater::priv::get_file(), Slic3r::GUI::FileGet::priv::get_perform(), and Slic3r::AppUpdater::priv::http_get_file().
Here is the caller graph for this function:| Http::Ptr Slic3r::Http::perform | ( | ) |
| void Slic3r::Http::perform_sync | ( | ) |
References p.
Referenced by Slic3r::PrusaLink::post_inner(), and Slic3r::PrusaLink::put_inner().
Here is the caller graph for this function:
|
static |
Referenced by Slic3r::PrusaLink::post_inner(), Slic3r::GUI::SendSystemInfoDialog::send_info(), Slic3r::Duet::start_print(), Slic3r::AstroBox::upload(), Slic3r::Duet::upload(), Slic3r::FlashAir::upload(), Slic3r::MKS::upload(), Slic3r::Moonraker::upload(), Slic3r::Repetier::upload(), and Slic3r::OctoPrint::upload_inner_with_host().
Here is the caller graph for this function:
|
static |
Referenced by Slic3r::PrusaLink::put_inner(), and Slic3r::Duet::upload().
Here is the caller graph for this function:| Http & Slic3r::Http::remove_header | ( | std::string | name | ) |
Referenced by Slic3r::GUI::SendSystemInfoDialog::send_info().
Here is the caller graph for this function:References p.
Referenced by Slic3r::PrusaLink::put_inner().
Here is the caller graph for this function:References p, and Slic3r::range().
Referenced by Slic3r::GUI::FileGet::priv::get_perform().
Here is the call graph for this function:
Here is the caller graph for this function:| Http & Slic3r::Http::size_limit | ( | size_t | sizeLimit | ) |
References p.
Referenced by Slic3r::GUI::FileGet::priv::get_perform(), and Slic3r::AppUpdater::priv::http_get_file().
Here is the caller graph for this function:References Slic3r::Http::priv::DEFAULT_TIMEOUT_CONNECT, and p.
References Slic3r::Http::priv::DEFAULT_TIMEOUT_MAX, and p.
Referenced by Slic3r::GUI::SendSystemInfoDialog::send_info().
Here is the caller graph for this function:
|
static |
References Slic3r::CurlGlobalInit::instance.
Referenced by Slic3r::Http::priv::priv(), and Slic3r::GUI::GUI_App::on_init_inner().
Here is the caller graph for this function:
|
static |
References getenv().
Referenced by Slic3r::GUI::GUI_App::on_init_inner().
Here is the call graph for this function:
Here is the caller graph for this function:
|
static |
Referenced by Slic3r::MKS::get_upload_url(), Slic3r::Duet::get_upload_url(), and Slic3r::Duet::start_print().
Here is the caller graph for this function:
|
private |