AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Classes | Enumerations | Functions
alexaClientSDK::avsCommon::utils::http2 Namespace Reference

Namespaces

 test
 

Classes

class  HTTP2ConnectionFactoryInterface
 
class  HTTP2ConnectionInterface
 
class  HTTP2ConnectionObserverInterface
 
struct  HTTP2GetMimeHeadersResult
 
class  HTTP2MimeRequestEncoder
 
class  HTTP2MimeRequestSourceInterface
 
class  HTTP2MimeResponseDecoder
 
class  HTTP2MimeResponseSinkInterface
 
class  HTTP2RequestConfig
 
class  HTTP2RequestInterface
 
class  HTTP2RequestSourceInterface
 
class  HTTP2ResponseSinkInterface
 
struct  HTTP2SendDataResult
 
class  MockHTTP2MimeRequestEncodeSource
 
class  MockHTTP2MimeResponseDecodeSink
 

Enumerations

enum  HTTP2ConnectionStatus { HTTP2ConnectionStatus::CONNECTING, HTTP2ConnectionStatus::CONNECTED, HTTP2ConnectionStatus::DISCONNECTED }
 
enum  HTTP2ReceiveDataStatus { HTTP2ReceiveDataStatus::SUCCESS, HTTP2ReceiveDataStatus::PAUSE, HTTP2ReceiveDataStatus::ABORT }
 
enum  HTTP2RequestType { HTTP2RequestType::GET, HTTP2RequestType::POST }
 
enum  HTTP2ResponseFinishedStatus { HTTP2ResponseFinishedStatus::COMPLETE, HTTP2ResponseFinishedStatus::TIMEOUT, HTTP2ResponseFinishedStatus::CANCELLED, HTTP2ResponseFinishedStatus::INTERNAL_ERROR }
 
enum  HTTP2SendStatus { HTTP2SendStatus::CONTINUE, HTTP2SendStatus::PAUSE, HTTP2SendStatus::COMPLETE, HTTP2SendStatus::ABORT }
 

Functions

std::ostream & operator<< (std::ostream &stream, HTTP2RequestType type)
 
std::ostream & operator<< (std::ostream &stream, HTTP2ResponseFinishedStatus status)
 

Enumeration Type Documentation

◆ HTTP2ConnectionStatus

The status of an HTTP2Connection.

Enumerator
CONNECTING 

Establishing a connection to an endpoint.

CONNECTED 

Connected to an endpoint.

DISCONNECTED 

Not CONNECTING or CONNECTED to an endpoint.

◆ HTTP2ReceiveDataStatus

Status returned from HTTP2ResponseSinkInterface::onReceiveData() and HTTP2MimeResponseSinkInterface::onReceiveMimePartData().

Enumerator
SUCCESS 

Successful receipt of all data passed in this call.

PAUSE 

Not ready to receive data. Retry receiving this data later.

ABORT 

Data not received. Abort receiving further data for this response.

◆ HTTP2RequestType

Type of request mde over an HTTP2Connection.

Enumerator
GET 

A HTTP2 GET request.

POST 

A HTTP2 POST request.

◆ HTTP2ResponseFinishedStatus

Status provided when an HTTP2 response is finished.

Enumerator
COMPLETE 

Receipt of the response was completed.

TIMEOUT 

Receipt of the response was not completed due to a timeout.

CANCELLED 

Receipt of the response was not completed because the operation was cancelled.

INTERNAL_ERROR 

Receipt of the response was not completed due to an internal error.

◆ HTTP2SendStatus

Status returned from various send operations.

Enumerator
CONTINUE 

Operation succeeded. Continue.

PAUSE 

Operation delayed. Retry later.

COMPLETE 

Operation completed successfully.

ABORT 

Operation failed. Abort.

Function Documentation

◆ operator<<() [1/2]

std::ostream& alexaClientSDK::avsCommon::utils::http2::operator<< ( std::ostream &  stream,
HTTP2RequestType  type 
)
inline

◆ operator<<() [2/2]

std::ostream& alexaClientSDK::avsCommon::utils::http2::operator<< ( std::ostream &  stream,
HTTP2ResponseFinishedStatus  status 
)
inline

Write a HTTP2ResponseFinishedStatus value to an ostream as a string.

Parameters
streamThe stream to write the value to.
statusThe status to write to the ostream as a string.
Returns
The ostream that was passed in and written to.

AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0