headers
Common header management for all protocols
Structs
Section titled “Structs”ProtocolHeaders
Section titled “ProtocolHeaders”Common Protocol Headers
Fields
| Field | Type | Description |
|---|---|---|
protocol | String | |
version | String | |
correlation_id | String | |
client_agent_id | Option<String> | |
trace_id | Option<String> |
Methods
from_headers
Section titled “from_headers”fn from_headers(headers: &HashMap<String, String>) -> SelfExtract protocol headers from raw headers
to_headers
Section titled “to_headers”fn to_headers(&self) -> HashMap<String, String>Convert to raw headers HashMap