[ https://issues.apache.org/jira/browse/CAMEL-20036?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17778943#comment-17778943 ]
Andrea Cosentino commented on CAMEL-20036: ------------------------------------------ If it's really trivial why don't you open a PR? > Provide endpoint producer builder for https endpoints > ------------------------------------------------------ > > Key: CAMEL-20036 > URL: https://issues.apache.org/jira/browse/CAMEL-20036 > Project: Camel > Issue Type: New Feature > Components: camel-http > Reporter: Marco Bungart > Priority: Minor > Fix For: 4.x > > > When one uses the [{{camel-http}} > component|https://camel.apache.org/components/4.0.x/http-component.html#_endpoint_header_CamelHttpUri] > to call a {{https}} url, one has to set the URL via the header: > {code:java} > from(...) > ... > .setHeader(Exchange.HTTP_URL, > constant("https://fruityvice.com/api/fruit/all")) > .to(http("ignored").httpMethod(HttpMethods.GET)) > .... > {code} > or use the (already present) corresponding endpoint builder factory, setting > the {{component}} to {{{}"https"{}}}: > {code:java} > from(...) > ... > .to(HttpEndpointBuilderFactory.endpointBuilder("https", > "fruityvice.com/api/fruit/all").httpMethod(HttpMethods.GET)) > ... > {code} > It would be nice to have a separte {{{}https(...){}}}-method to call > {{{}"https"{}}}-resources: > {code:java} > from(...) > ... > .to(https("fruityvice.com/api/fruit/all").httpMethod(HttpMethods.GET)) > ... > {code} > — > Story: > *As* a camel-user > *When* I need to call a https URL > *Then* I want an endpoint builder with dsl support -- This message was sent by Atlassian Jira (v8.20.10#820010)