OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia::net::http_get_request< Fun, Err > Class Template Reference

Detailed Description

template<typename Fun, typename Err>
class ossia::net::http_get_request< Fun, Err >

GET-oriented facade over http_client_request.

It only adapts the callback shapes of the OSCQuery mirrors - a body-only answer and an argument-less error - onto the client implementation. No protocol handling here: response framing lives in http_client_request.

Public Member Functions

 http_get_request (Fun f, Err err, boost::asio::io_context &ctx, const std::string &server, const std::string &path, std::string_view verb="GET")
 
void resolve (const std::string &server, const std::string &port)
 
void close ()
 

Member Function Documentation

◆ resolve()

template<typename Fun , typename Err >
void ossia::net::http_get_request< Fun, Err >::resolve ( const std::string &  server,
const std::string &  port 
)
inline

The request keeps itself alive until it completes, like the implementation it delegates to.