I am trying to invoke a Rest API using akka http client using below code.

            val httpRequest = HttpRequest(
              method  = HttpMethods.GET,


              headers = 
List(Accept(MediaRange(MediaTypes.`application/json`.withParams(Map("v" → 
                RawHeader("Content-Type", "application/json;v=3"),
                RawHeader("Api-Key", "XYZ")

Http().singleRequest(httpRequest, GatewayHelper.connectionContext)

Before the call goes out, when i check the httprequest.uri (through 
debugger), there is a partial uri decoding that is happening (%2B changed 
to +)      "https://example.com/customers/~/profiles/

Because of this the API is returning an error. Unfortunately, there are 
bunch or APIs that has this type of path variable . So not able to invoke 
using akka-http . 

I also tried setting the parsing mode to Relaxed hoping that it would not 
tamper the path variable, but it didnt help either.

/preferences", Uri.ParsingMode.Relaxed)

So, Is there option where we can make akka no modify this before making the 

>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to akka-user+unsubscr...@googlegroups.com.
To post to this group, send email to akka-user@googlegroups.com.
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to