Skip to main content

winterbaume_core/protocol/
mod.rs

1//! Shared protocol utilities for AWS service mock implementations.
2//!
3//! This module consolidates duplicated helper functions that were previously
4//! copy-pasted across 20+ service crates. Three protocol families are supported:
5//!
6//! - **common**: URL parsing, percent-decoding, query string parsing
7//! - **json**: awsJson1.0/1.1 error responses, field extraction helpers
8//! - **xml**: XML escaping, awsQuery response envelope helpers
9
10pub mod common;
11pub mod json;
12pub mod xml;
13
14pub use common::{
15    extract_path, extract_query_string, hex_val, parse_query_string, percent_decode, urldecode,
16};
17pub use json::{body_has_top_level_field, json_error_response, rest_json_error};
18pub use xml::{aws_query_error_response, aws_query_response, xml_escape};