> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# authorization_header

> authorization_header — Kinetica Rust API

[gpudb\_api](https://docs.kinetica.com/content/api/rust/index.md)::<wbr />[hyper\_client](https://docs.kinetica.com/content/api/rust/hyper_client/index.md)
[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/hyper_client.rs#L1120-L1129)&#x20;

<pre>`pub fn authorization_header(    oauth_token: &str,    username: &str,    password: &str,) -> Option<String>`</pre>

The `Authorization` header to send: `Bearer <token>` when an OAuth token is set, otherwise `Basic` with the credentials when the username or the password is set, and no header at all when neither is.The credentials are encoded as UTF-8.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.