pub struct ConjureRuntime { /* private fields */ }Expand description
A type providing client logic that is configured at runtime.
Implementations§
Source§impl ConjureRuntime
impl ConjureRuntime
Sourcepub fn accept(&self) -> HeaderValue
pub fn accept(&self) -> HeaderValue
Returns an Accept header value based on the configured accept encodings.
Sourcepub fn request_body_encoding(&self) -> &(dyn Encoding + Sync + Send)
pub fn request_body_encoding(&self) -> &(dyn Encoding + Sync + Send)
Returns the configured request body Encoding.
Sourcepub fn response_body_encoding(
&self,
headers: &HeaderMap,
) -> Result<&(dyn Encoding + Sync + Send), Error>
pub fn response_body_encoding( &self, headers: &HeaderMap, ) -> Result<&(dyn Encoding + Sync + Send), Error>
Returns the appropriate Encoding to deserialize the response body.
The implementation currently compares the response’s Content-Type header against Encoding::content_type,
ignoring parameters.