Skip to main content

Module protocol

Module protocol 

Source
Expand description

Shared protocol utilities for AWS service mock implementations.

This module consolidates duplicated helper functions that were previously copy-pasted across 20+ service crates. Three protocol families are supported:

  • common: URL parsing, percent-decoding, query string parsing
  • json: awsJson1.0/1.1 error responses, field extraction helpers
  • xml: XML escaping, awsQuery response envelope helpers

Re-exports§

pub use common::extract_path;
pub use common::extract_query_string;
pub use common::hex_val;
pub use common::parse_query_string;
pub use common::percent_decode;
pub use common::urldecode;
pub use json::body_has_top_level_field;
pub use json::json_error_response;
pub use json::rest_json_error;
pub use xml::aws_query_error_response;
pub use xml::aws_query_response;
pub use xml::xml_escape;

Modules§

common
Common protocol utilities shared across all AWS protocol families.
json
JSON protocol utilities for awsJson1.0/1.1 and REST-JSON services.
xml
XML protocol utilities for awsQuery and REST-XML services.