![]() |
AlexaClientSDK
3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
|
#include <HTTPContentFetcherInterface.h>
Public Member Functions | |
Header () | |
Public Attributes | |
bool | successful |
avsCommon::utils::http::HTTPResponseCode | responseCode |
The HTTP status code received. More... | |
std::string | contentType |
The value of the Content-Type HTTP header. More... | |
ssize_t | contentLength |
The value of the Content-Length HTTP header. More... | |
A struct that represents the header that was retrieved from the HTTP connection. Objects that receive this struct are responsible for checking if the successful field is true before reading the other fields.
|
inline |
ssize_t alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterface::Header::contentLength |
The value of the Content-Length HTTP header.
std::string alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterface::Header::contentType |
The value of the Content-Type HTTP header.
avsCommon::utils::http::HTTPResponseCode alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterface::Header::responseCode |
The HTTP status code received.
bool alexaClientSDK::avsCommon::sdkInterfaces::HTTPContentFetcherInterface::Header::successful |
If false
, there was an error retrieving the header. For instance, the content fetcher may have reached a timeout waiting for the server. If this field's value is false
, all other field values should be ignored.
AlexaClientSDK 3.0.0 - Copyright 2016-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0