Skip to main content

Module response

Module response 

Source
Expand description

STS XML response formatting and error serialization.

STS responses use text/xml content type following the awsQuery protocol. All STS responses follow the pattern:

<{Operation}Response xmlns="https://sts.amazonaws.com/doc/2011-06-15/">
  <{Operation}Result>
    ...fields...
  </{Operation}Result>
  <ResponseMetadata>
    <RequestId>{uuid}</RequestId>
  </ResponseMetadata>
</{Operation}Response>

Structs§

XmlWriter
Simple XML writer for building STS response XML.

Constants§

CONTENT_TYPE
Content type for STS XML responses.

Functions§

error_to_response
Convert an StsError into a complete HTTP error response.
error_to_xml
Serialize an STS error into an XML error response body string.
xml_escape
XML-escape a string value.
xml_response
Build a success XML response with the given body and request ID.