I am new in scala. Currently, to create rest API I'm using the spray. Now I want to consume API from another server. I'm calling this API on every key ...
I am new in scala. Currently, to create rest API I'm using the spray. Now I want to consume API from another server. I'm calling this API on every key ...
I am new to scala. I am trying to timeout api request. I am using spray to make API request. I have spray client to get response from some other serve ...
I am new to scala and spray. I am able to abort request from reactJS. And it shows in network tab of browser console that the request is cancelled. Bu ...
Here is the code which I am trying to create a Post request through the spray http package org.exadatum.xstream.service.http my rest service is run ...
I have a Akka HTTP service which returns a string, as shown below: I am trying to understand the difference between map and flatMap For example, t ...
I have a Akka HTTP service which returns a string, as shown below: I have a Akka HTTP client which tries to access this route. But the below code f ...
I am using POSTMAN app for doing REST call (POST, GET) to my Scala Akka Application. if i do the same call from angularJS it works but when i fire it ...
I get an exception The entity “nbsp” was referenced, but not declared when parsing valid HTML that contains the &nbsp entity (which makes it inval ...
FormData is supposed to set the Content-Type header automatically but it isn't working. So I tried to set it manually but I get a warning. In eithe ...
I have a specific pipeline in my app that must follow all redirects (let's say up to 50 for sanity's sake), across any domain and protocol (e.g. it co ...
I'm writing simple spray client code: Each time I'm running this code I'm getting What should I do to fix that? ...
I am creating a service that aggregates data and will need to be able to read any unknown JSON document. I have the pipeline defined as follows: Th ...
I read on the spray-can docs that it supports HTTP Pipelining. But there is no method or example specified anywhere on how to do it. ...
I am trying to request a persistent HTTP Connection using Scala Spray-client library such that the client has to establish the connection once and the ...
I am trying to send a GET request to URL . Once I get the following response, after which our client doesn't send any following requests. I ha ...
I want to have the content of result.entity.asString but the result is empty. And I have many WARNING that make non stop. My Code is: ` ` the resul ...
I have this two erros: My Code is: ...
i'm trying to marshall a string into a custom case class that I have. Here is the code I am trying to use and here is the error that I am getting: ...
I have a simple json app. It works fine if I make a request like curl -X POST --data "userId=1" http://localhost:8080/register But request fai ...
I'm using spray-client to generate http requests to my server in e2e tests. I also use specs2 to test for the desired response from the server. And ev ...