HTTPStorageConfig
HTTPStorageConfig represents the configuration that will be used if storage is HTTP within the client usage.
It composes of endpoint, optional index file paht and credentials.
Each instance is produced automatically when creating a new rac-delta client with http storage type.
Structure
pub struct HTTPStorageConfig {
pub base: BaseStorageConfig,
pub endpoint: String,
pub index_file_path: Option<String>,
pub credentials: Option<HTTPCredentials>,
}
pub struct HTTPCredentials {
pub bearer_token: Option<String>,
pub api_key: Option<String>,
}
Properties
| Property | Type | Description |
|---|---|---|
| base | BaseStorageConfig | Extended base configuration. |
| endpoint | String | Base URL that will be used for all http operations. |
| index_file_path | Option<String> | Optional path (relative to endpoint and path_prefix) where the remote index file can be found. |
| credentials | Option<HTTPCredentials> | Optional credentials object composed of bearer token and api key. |