> ## 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.

# add_http_header

[Source](https://github.com/kineticadb/kinetica-api-rust/blob/master/crates/gpudb-api/src/gpudb.rs#L1819-L1827)
pub fn [add\_http\_header](https://docs.kinetica.com/content/api/rust/gpudb/struct.Kinetica/add-http-header.md#method.add_http_header)( \&self, header: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), value: &[str](https://doc.rust-lang.org/1.98.1/std/primitive.str.html), ) -> [Result](https://doc.rust-lang.org/1.98.1/core/result/enum.Result.html)\<[()](https://doc.rust-lang.org/1.98.1/std/primitive.unit.html), [KineticaError](https://docs.kinetica.com/content/api/rust/errors/enum.KineticaError.md)>

Adds an HTTP header sent with each request, replacing one of the same name. The headers the client sets itself (`Authorization`, `Content-type`, `User-Agent`, `X-Kinetica-Group`, `X-Kinetica-Session`) cannot be changed.


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