![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTP2RequestConfig.h>
Public Member Functions | |
HTTP2RequestConfig (HTTP2RequestType type, const std::string &url, const std::string &idPrefix) | |
void | setConnectionTimeout (std::chrono::milliseconds timeout) |
void | setTransferTimeout (std::chrono::milliseconds timeout) |
void | setActivityTimeout (std::chrono::milliseconds timeout) |
void | setPriority (uint8_t priority) |
void | setRequestSource (std::shared_ptr< HTTP2RequestSourceInterface > source) |
void | setResponseSink (std::shared_ptr< HTTP2ResponseSinkInterface > sink) |
void | setIntermittentTransferExpected () |
void | setLogicalStreamIdPrefix (std::string logicalStreamIdPrefix) |
HTTP2RequestType | getRequestType () const |
std::string | getUrl () const |
std::chrono::milliseconds | getConnectionTimeout () const |
std::chrono::milliseconds | getTransferTimeout () const |
std::chrono::milliseconds | getActivityTimeout () const |
uint8_t | getPriority () const |
std::shared_ptr< HTTP2RequestSourceInterface > | getSource () const |
std::shared_ptr< HTTP2ResponseSinkInterface > | getSink () const |
bool | isIntermittentTransferExpected () const |
std::string | getId () const |
Class for configuring an HTTP2 request.
|
inline |
Constructor.
type | The type of request. |
url | The URL to receive the request. |
idPrefix | Prefix used when creating the request's ID. |
|
inline |
Get the maximum time, in milliseconds, to wait between any read or write operations for this request.
timeout | The max amount of time, in milliseconds, between any read or write operations for this request. |
|
inline |
Get the maximum time, in milliseconds, for the connection phase to the server to take.
|
inline |
Get the name used to identify the request.
|
inline |
Get the priority of this request.
|
inline |
Get the type of the request (like GET or POST)
|
inline |
Get the object to receive the response to this HTTP2 request.
|
inline |
Get the object to provide the data for this HTTP2 request.
|
inline |
Get the maximum time the request is allowed to take.
|
inline |
Get the URL which is to receive the request.
|
inline |
Whether this request expects that transfer will happen intermittently.
|
inline |
Specify the maximum time, in milliseconds, to wait between any read or write operations for this request.
timeout | The max amount of time, in milliseconds, between any read or write operations for this request. |
|
inline |
Specify the maximum time, in milliseconds, for the connection phase to the server to take.
timeout | The max amount of time, in milliseconds, for the connection phase to the server to take. |
|
inline |
If this request expects that transfer will happen intermittently, set this property. (It is false by default.)
void alexaClientSDK::avsCommon::utils::http2::HTTP2RequestConfig::setLogicalStreamIdPrefix | ( | std::string | logicalStreamIdPrefix | ) |
Set stream identification prefix to use for file names if extended curl logging is enabled. Request ID will be appended to it.
logicalStreamIdPrefix | logical stream Id prefix to use in CURL log file names. |
|
inline |
Specify the priority of this request.
The | priority of the request. Higher values (max 255) specify higher priority. By default requests are assigned a priority of 16. |
|
inline |
Specify the object to provide the data for this HTTP2 request.
source | The object to provide the data for this HTTP2 POST request. |
|
inline |
Specify the object to receive the response to this HTTP2 request.
sink | The object to receive the response to this HTTP2 request. |
|
inline |
Specify the maximum time the request is allowed to take.
timeout | The max amount of time, in milliseconds, that the request is allowed to take. |
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0