[ https://issues.apache.org/jira/browse/CAMEL-22367?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18015806#comment-18015806 ]
Chirag Sanghavi edited comment on CAMEL-22367 at 8/24/25 4:18 AM: ------------------------------------------------------------------ Need is to bring: * CamelHttpUrl * Location (it may be useful to convert it to CamelHttpResponseLocation or something like that). was (Author: JIRAUSER283813): Need is to bring: * CamelHttpUrl > parity between camel-http and camel-netty-http > ---------------------------------------------- > > Key: CAMEL-22367 > URL: https://issues.apache.org/jira/browse/CAMEL-22367 > Project: Camel > Issue Type: Improvement > Components: camel-http > Affects Versions: 4.14.0 > Reporter: Chirag Sanghavi > Priority: Minor > > netty-http returns many more header parameters compared to regular http. > e.g. Returned by Netty > Age=0, Cache-Control=no-cache, Cache-Status=["Netlify Durable"; fwd=bypass, > "Netlify Edge"; fwd=method], CamelHttpResponseCode=301, > CamelHttpResponseText=Moved Permanently, > CamelHttpUrl=https://swapi-graphql.netlify.app/.netlify/functions/index, > Content-Length=0, Date=Sun, 24 Aug 2025 04:11:58 GMT, Location=/graphql, > Netlify-Vary=query, Server=Netlify, > Strict-Transport-Security=max-age=31536000; includeSubDomains; preload, > X-Nf-Request-Id=01K3D4D8DZDKK7PC6T3MH07FDJ > http returns: > {CamelHttpResponseCode=301, CamelHttpResponseText=Moved Permanently} > > {code:java} > // Here is sample route used to capture and print headers for netty-http > from("timer:java?period=10000") .setBody() > .simple("Hello Camel from ${routeId}") .doTry() > > .to("netty-http:https://swapi-graphql.netlify.app/.netlify/functions/index") > .convertBodyTo(String.class) > .doCatch(Exception.class) .log("Exception") > .log("${body}") .log("${headers}") > .doFinally() .log("Finally") > .log("${body}") .log("${headers}") .end(); > {code} > > -- This message was sent by Atlassian Jira (v8.20.10#820010)