Questions tagged [akka-http]

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

The purpose of the Akka HTTP layer is to expose Actors to the web via HTTP and to enable them to consume HTTP services as a client. It is not an HTTP framework, it is an Actor-based toolkit for interacting with web services and clients.

More Info:

1489 questions
0
votes
1 answer

How a Procfile is different from shellscript file and when should I use it?

In akk-http-microservice i have seen a procfile for the first time. I try to know about it. I came to know that procfile is meant for executing commands. But how it differs from shell script which also do same. When should i prefer to it?
Siva Kumar
  • 632
  • 3
  • 9
  • 19
0
votes
1 answer

Not able to send multiple message with same websocket connection using Akka-Http

I am using akka-http websocket client to connect with websocket server and for sending and retrieving message. object WebSocketClientFlow { def main(args: Array[String]) = { implicit val system = ActorSystem() implicit val materializer =…
Ayush Mishra
  • 567
  • 1
  • 7
  • 19
0
votes
0 answers

Facebook post redirected link not original one

I want in my app to save ip from user and then redirect to another page. Problem is when I past this link to facebook they go to page and show not my link but link that is redirected (because they visit my app). I use akka-http and on complete I…
0
votes
1 answer

Propagate / delegate path value to child routes akka http

I want to have a base route that receive a IntNumber and make some checks with the database to know if the values is correct or not and then If the value is correct I want to propagate the value to child routes. Base Route class BaseServiceRoute…
joselufo
  • 3,393
  • 3
  • 23
  • 37
0
votes
1 answer

How can I get Content-Length header (Head request method)

I don't see any way to get that header in akk-http. That header is removed from header list in HttpResponse. I know there are methods that return the contentLength from entity: HttpEntity.contentLengthOption and HttpEntity.contentLength on strict…
Tomasz Wujec
  • 318
  • 3
  • 6
0
votes
1 answer

Akka: How to work with returned Json feed?

I get a Json feed back from a remote third party API in this way: val myjson: Future[HttpResponse] = http.singleRequest(HttpRequest(uri = encodedUri)) myjson onComplete { case Success(response) => sender !…
Randomize
  • 8,651
  • 18
  • 78
  • 133
0
votes
1 answer

Akka multiple actor systems vs multiple child actors and GUI

I am trying to develop an application where each node performs a set of tasks: N nodes, each node performs task A, task B etc. The tasks are not distributed. The plan I have come up with is to come up with a single actor system on each node. For…
jrd29
  • 25
  • 7
0
votes
1 answer

Akka HTTP Java: not override abstract method yeOldeTestNames() in org.scalatest.Suite

I am going to use akka-http with Java. The routing done successfully and run. But when i trying to write test case using JUnitRouteTest, i got an error. com.james.controllers.PingPongApiTest is not abstract and does not override abstract method…
Harmeet Singh Taara
  • 6,483
  • 20
  • 73
  • 126
0
votes
0 answers

akka-http how to send response as html

http for processing my routes is there any way i can pass html as response to the get request path("employees" / "confirm" / Segments(1)) { confirmationCode => get { complete { …
Mahi Tej Gvp
  • 984
  • 1
  • 14
  • 34
0
votes
1 answer

Cannot understand routing in Akka HTTP

I have the following piece of code in Scala using Akka HTTP with Spray Routing import akka.http.scaladsl.server.Directives._ val geoip = path(RemainingPath) {remaining => val response = . . . complete(response) } But the I get the error…
Eric Kolotyluk
  • 1,958
  • 2
  • 21
  • 30
0
votes
1 answer

how to respond to a request with a dependency on another actor?

this might be a stupid question, but I need to ask since I havent found an answer to it yet. I have used the akka-http with routing with the typical routing pattern of a path with a complete with a HttpRequest. For instance: ~ path("reactJS") { …
stian
  • 1,947
  • 5
  • 25
  • 47
0
votes
1 answer

How to use swagger with akka-http & basic auth

I am trying to document an akka-http API using swagger & swagger-akka-http. This blog post gave me a good start, but now I am stuck, trying to document the fact that the API is using basic auth. what I have is: @Path("/foo") @Api(value = "/foo",…
kostja
  • 60,521
  • 48
  • 179
  • 224
0
votes
1 answer

Different execution contexts and thread allocation with akka-http

Not sure if that's the right stackexchange for this question I've got an akka-http application that acts as a front to some heavy computation. The requests it handles vary in time it takes to process them. Some finish within one second, some take…
Anton
  • 3,006
  • 3
  • 26
  • 37
0
votes
1 answer

Streaming JSON objects using akka http chunked response

Is it abuse or somehow dangerous to use akka-http like this? On server def source(consumerOffset: UUID) = readJournal.eventsByTag(“MyTag", consumerOffset).map(_.asJson) pathPrefix("stream" / Segment.map(UUID.fromString)) { offset => …
Denis Mikhaylov
  • 2,035
  • 21
  • 24
0
votes
1 answer

Akka HTTP client akka-http akka-http-jackson

I am trying to make an actor calls a simple GET on rest service. For that I'm using akka-http-experimental_2.11, and akka-http-jackson-experimental_2.11. Try as I might I couldn't find a comprehensible java example. The call is to be made async and…
user3159152
  • 611
  • 4
  • 12
  • 20