Skip to main content

authorization

Function authorization 

Source
pub fn authorization(
    descriptor: &OperationDescriptor,
    credentials: &ApiCredentials,
    has_cookie: bool,
) -> Result<Option<String>, ApiError>
Expand description

Which Authorization header an operation gets, or none. Fails when it needs a credential that was not supplied.