C++ Rest SDK
The C++ REST SDK is a Microsoft project for cloud-based client-server communication in native code using a modern asynchronous C++ API design. This project aims to help C++ developers connect to and interact with services.
Public Member Functions | Static Public Member Functions | List of all members
web::http::http_pipeline Class Reference

More...

#include <http_msg.h>

Public Member Functions

pplx::task< http_responsepropagate (http_request request)
 Initiate an http request into the pipeline More...
 
void append (const std::shared_ptr< http_pipeline_stage > &stage)
 Adds an HTTP pipeline stage to the pipeline. More...
 
void set_last_stage (const std::shared_ptr< http_pipeline_stage > &last)
 Sets the last stage of the pipeline. More...
 
const std::shared_ptr< http_pipeline_stage > & last_stage () const
 Retrieves the last stage in this pipeline. More...
 

Static Public Member Functions

static std::shared_ptr< http_pipelinecreate_pipeline (const std::shared_ptr< http_pipeline_stage > &last)
 Create an http pipeline that consists of a linear chain of stages More...
 

Detailed Description

Member Function Documentation

void web::http::http_pipeline::append ( const std::shared_ptr< http_pipeline_stage > &  stage)
inline

Adds an HTTP pipeline stage to the pipeline.

Parameters
stageA pipeline stage.
static std::shared_ptr<http_pipeline> web::http::http_pipeline::create_pipeline ( const std::shared_ptr< http_pipeline_stage > &  last)
inlinestatic

Create an http pipeline that consists of a linear chain of stages

Parameters
lastThe final stage
const std::shared_ptr<http_pipeline_stage>& web::http::http_pipeline::last_stage ( ) const
inline

Retrieves the last stage in this pipeline.

Returns
A shared pointer to last stage.
pplx::task<http_response> web::http::http_pipeline::propagate ( http_request  request)
inline

Initiate an http request into the pipeline

Parameters
requestHttp request
void web::http::http_pipeline::set_last_stage ( const std::shared_ptr< http_pipeline_stage > &  last)
inline

Sets the last stage of the pipeline.

Parameters
lastShared pointer to pipeline stage to set as the last.

The documentation for this class was generated from the following file: