You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "waynexia (via GitHub)" <gi...@apache.org> on 2024/04/09 07:42:41 UTC

[I] Support setting custom HTTP headers [opendal]

waynexia opened a new issue, #4446:
URL: https://github.com/apache/opendal/issues/4446

   This ticket requires a feature that exposes API(s) to allow setting custom HTTP headers for `HttpBackend`. Or exposes the underlying `http_client` like https://github.com/apache/opendal/issues/4389 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo closed issue #4446: Support setting custom HTTP headers
URL: https://github.com/apache/opendal/issues/4446


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2044662218

   By the way, the `build` API should work for now. Please try add headers in `ClientBuilder` and pass into http backend.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "waynexia (via GitHub)" <gi...@apache.org>.
waynexia commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2044651284

   Sure, please assign :+1:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2074041321

   > The current method of handling request headers seems incompatible with usage in other language bindings.
   
   Yes, setting custom HTTP headers for other bindings is a seperate feature to support. Would you like to create an issue for this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2044647882

   We can add a new API called `with(client: reqwest::Client)` to allow users to build `HttpClient` via their own client. Would you like to give it a try?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "zzl221000 (via GitHub)" <gi...@apache.org>.
zzl221000 commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2073680753

   > We now offer an [HTTP client builder](https://opendal.apache.org/docs/rust/opendal/raw/struct.HttpClient.html#method.build). Perhaps we could allow direct HTTP client integration, enabling OpenDAL to work with a wider range of HTTP clients.
   
   
   
   > We can add a new API called `with(client: reqwest::Client)` to allow users to build `HttpClient` via their own client. Would you like to give it a try?
   
   @Xuanwo 
   The current method of handling request headers seems incompatible with usage in other language bindings.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] Support setting custom HTTP headers [opendal]

Posted by "Xuanwo (via GitHub)" <gi...@apache.org>.
Xuanwo commented on issue #4446:
URL: https://github.com/apache/opendal/issues/4446#issuecomment-2044643689

   We now offer an [HTTP client builder](https://opendal.apache.org/docs/rust/opendal/raw/struct.HttpClient.html#method.build). Perhaps we could allow direct HTTP client integration, enabling OpenDAL to work with a wider range of HTTP clients.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org