Skip to content

Expose several private functions to allow easier implemenation of HttpService and HttpConnector #642

@robalar

Description

@robalar

Is your feature request related to a problem or challenge? Please describe what you are trying to do.

Hi there 👋 I've been trying to implement the HttpService and HttpConnector traits to allow me to trace the HTTP calls that object store is making. However, several functions used in the implementation for HttpService on reqwest::Client (which I am essentially replicating, with the addition of the tracing) are private so I cannot reuse them in my implementation.

These are:

  • HttpError::reqwest
  • HttpRequestBody::into_reqwest
  • ‎ClientOptions::client

Describe the solution you'd like
These functions to be made pub.

Describe alternatives you've considered
None, however, keen to hear if the there would be a better way to trace the calls.

Additional context
N/A

Happy to handle the PR for this (should be trivial), just wanted to make sure it was not misguided!

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions