AlexaClientSDK  3.0.0
A cross-platform, modular SDK for interacting with the Alexa Voice Service
Namespaces | Functions | Variables
MimeUtils.cpp File Reference
#include "AVSCommon/Utils/Common/MimeUtils.h"
#include <AVSCommon/AVS/Attachment/InProcessAttachmentReader.h>
#include "AVSCommon/Utils/Common/Common.h"
Include dependency graph for MimeUtils.cpp:

Namespaces

 alexaClientSDK
 Whether or not curl logs should be emitted.
 
 alexaClientSDK::avsCommon
 
 alexaClientSDK::avsCommon::utils
 

Functions

std::string alexaClientSDK::avsCommon::utils::constructTestMimeString (const std::vector< std::shared_ptr< TestMimePart >> &mimeParts, const std::string &boundaryString, bool addPrependedNewline=true)
 

Variables

static const std::string alexaClientSDK::avsCommon::utils::MIME_NEWLINE = "\r\n"
 The newline characters that MIME parsers expect. More...
 
static const std::string alexaClientSDK::avsCommon::utils::MIME_BOUNDARY_DASHES = "--"
 The double dashes which may occur before and after a boundary string. More...
 
static const std::string alexaClientSDK::avsCommon::utils::MIME_JSON_PREFIX_STRING = "Content-Type: application/json; charset=UTF-8"
 The MIME text expected before a JSON part. More...
 
static const std::string alexaClientSDK::avsCommon::utils::MIME_ATTACHMENT_PREFIX_STRING = "Content-Type: application/octet-stream"
 The MIME text expected before a binary data part. More...
 
static const std::string alexaClientSDK::avsCommon::utils::MIME_CONTENT_ID_PREFIX_STRING = "Content-ID: "
 The MIME prefix for a content id header. More...
 
static const std::chrono::seconds alexaClientSDK::avsCommon::utils::WAIT_FOR_DIRECTIVE_TIMEOUT_IN_SECONDS = std::chrono::seconds(1)
 Our default timeout when validating if a MIME part was received by another object. More...
 

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