Skip to content

[REQ] [Java][Native] set httpClient to ApiClient class instead of only builder #21567

Open
@greenenvy17

Description

@greenenvy17

Is your feature request related to a problem? Please describe.

I'm using openapi-generator for Java, and i'm using the native library. The problem i have is with instrumentation. I am able to somehow set it up with Micrometer, but everything i try gives me an instance of HttpClient. Unfortunately, i get only to set the builder with setHttpClientBuilder. Is there a way to set HttpClient directly that i'm not aware without possibility of hacky ways to do this?

Describe the solution you'd like

Having something like this

public ApiClient(HttpClient client) {
    this.client = client;
  }

Describe alternatives you've considered

I'm looking into using a different library, but would be ideal if i can use a native one.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions