AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Public Member Functions | Public Attributes | List of all members
alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse Struct Reference

#include <HTTPResponse.h>

Public Member Functions

 HTTPResponse ()
 
 HTTPResponse (long pCode, const std::string &pBody)
 
std::string serialize ()
 Serialize the object. More...
 

Public Attributes

long code
 The HTTP status code returned by the server. More...
 
std::string body
 The body of the response returned by the server. More...
 

Detailed Description

Structure used to capture the values resulting from an HTTP request.

Constructor & Destructor Documentation

◆ HTTPResponse() [1/2]

alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse::HTTPResponse ( )

Default constructor.

◆ HTTPResponse() [2/2]

alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse::HTTPResponse ( long  pCode,
const std::string &  pBody 
)

Constructor with params.

Parameters
pCodeThe status code.
pBodyThe response body.

Member Function Documentation

◆ serialize()

std::string alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse::serialize ( )

Serialize the object.

Member Data Documentation

◆ body

std::string alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse::body

The body of the response returned by the server.

◆ code

long alexaClientSDK::avsCommon::utils::libcurlUtils::HTTPResponse::code

The HTTP status code returned by the server.


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

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