Share via


http_client::add_handler Method

Add an HTTP pipeline stage to the client.

void add_handler(
   std::function<pplx::task<http_response>(http_request,
   std::shared_ptr<http::http_pipeline_stage>)> handler
);

void add_handler(
   std::shared_ptr<http::http_pipeline_stage> stage
);

Parameters

  • handler
    A function object representing the pipeline stage.

  • stage
    A shared pointer to a pipeline stage.

Requirements

Header: http_client.h

Namespace: web::http::client

See Also

Reference

http_client Class