Skip to content

Commit

Permalink
docs(object_store): Mention with_allow_http in docs of `with_endpoi…
Browse files Browse the repository at this point in the history
…nt` (#5275)

Signed-off-by: Xuanwo <github@xuanwo.io>
  • Loading branch information
Xuanwo committed Jan 3, 2024
1 parent b2b4e7a commit 2460c88
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions object_store/src/aws/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,9 @@ impl AmazonS3Builder {
/// i.e. if `virtual_hosted_style_request` is set to true then `endpoint`
/// should have the bucket name included.
///
/// By default, only HTTPS schemes are enabled. To connect to an HTTP endpoint, enable
/// [`Self::with_allow_http`].
///
/// [region endpoint]: https://docs.aws.amazon.com/general/latest/gr/s3.html
pub fn with_endpoint(mut self, endpoint: impl Into<String>) -> Self {
self.endpoint = Some(endpoint.into());
Expand Down
3 changes: 3 additions & 0 deletions object_store/src/azure/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,9 @@ impl MicrosoftAzureBuilder {
/// Override the endpoint used to communicate with blob storage
///
/// Defaults to `https://{account}.blob.core.windows.net`
///
/// By default, only HTTPS schemes are enabled. To connect to an HTTP endpoint, enable
/// [`Self::with_allow_http`].
pub fn with_endpoint(mut self, endpoint: String) -> Self {
self.endpoint = Some(endpoint);
self
Expand Down

0 comments on commit 2460c88

Please sign in to comment.