MCPcopy Create free account
hub / github.com/apache/paimon-rust / apply

Method apply

crates/paimon/src/api/auth/base.rs:123–127  ·  view source on GitHub ↗

Apply authentication to get headers for a request. # Arguments `parameter` - Information about the request being authenticated # Returns A HashMap containing the authenticated headers.

(&self, parameter: &RESTAuthParameter)

Source from the content-addressed store, hash-verified

121 /// # Returns
122 /// A HashMap containing the authenticated headers.
123 pub async fn apply(&self, parameter: &RESTAuthParameter) -> Result<HashMap<String, String>> {
124 self.auth_provider
125 .merge_auth_header(self.init_header.clone(), parameter)
126 .await
127 }
128}

Callers 1

build_auth_headersMethod · 0.80

Calls 1

merge_auth_headerMethod · 0.45

Tested by

no test coverage detected