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
0 answers

Error using Akka Http

I get the error "main" java.lang.NoClassDefFoundError: akka/parboiled2/ParserInput when I try to run any code which uses Akka Http. I am using these Jar files: akka-http-core_2.11-10.0.1.jar akka-http_2.11-10.0.1.jar How do I fix this?
codingsplash
  • 4,785
  • 12
  • 51
  • 90
0
votes
0 answers

How to implement Generic slick dao with oauth2 in scala

To work with OAuth2, Slick, Akka-HTTP in scala, I'm using the code from cdiniz https://github.com/cdiniz/slick-akka-http-oauth2. I tried to create a DAO: UserDao and respective API: UserApi to fetch all records(in JSON) from database after…
Sujit Baniya
  • 895
  • 9
  • 27
0
votes
0 answers

akka spray -> akka http migration

this is fragment of my router in spray based service: path(baseUrl / version / "apps" / Segment / "users" / Segment) { (app, user) => respondWithMediaType(MediaTypes.`application/json`) { ctx => createProxy(ctx, management, GetUser(appId =…
HoTicE
  • 573
  • 2
  • 13
0
votes
1 answer

Unmarshaler for HttpResonse Headers to T

Using Akka-http client: what is a best way of extracting or Unmarshalling HttpResponse headers into a case class T? My current attempt: class UnmarshallerSpec extends AkkaSpec("unmarshal") with ScalaFutures with WordSpecLike with Matchers with…
Rabzu
  • 52
  • 5
  • 26
0
votes
1 answer

How to restrict an actor in the clustered akka actorsystem to execute only in one node

I have an actorsystem which has 3 actors and are listed below RMQreaderActor - This is the actor which reads the messages from the RMQ and tells the below two actors to convert the message and process it ConverterActor ProcessorActor My…
vikram
  • 1
0
votes
1 answer

Downloading akka-http jar files

I am unable to find akka-http jar files anywhere. Where can I download them from? ( without sbt )
codingsplash
  • 4,785
  • 12
  • 51
  • 90
0
votes
1 answer

How to make htttp request with akka stream for 10K request

I build server with akka-http and akka-stream but it lost some request in 2K+ request. What I miss something or my understand for akka is wrong. this is my code implicit val actorRef = ActorSystem("system", testConf) implicit val materializer =…
0
votes
1 answer

Can Websocket and normal get route be same in Akka Http?

I do have a scenario where I will want my websocket route and get route paths to be the same. Is it possible in Akka Http? Consider the below mentioned code: def flow: Flow[Message, Message, Any] = Flow.fromSinkAndSource(Sink.ignore, …
0
votes
2 answers

Marshal akka `HttpResponse` as Argonaut `Json`

I'm trying to marshal an akka HttpResponse as such: { "code": 200, "headers": [], "body": "{\"data\": \"Yes!\"}" } If I write an Argonaut EncodeJson for this Instance, it might look like this: implicit def httpResponseEncodeJson:…
0
votes
1 answer

spray-json in Http().bindAndHandle

I'm currently going through the akka-http documentation & examples. I'm stuck on probably something very trivial: passing in route-configuration with Directives and JsonSupport. I'm following the docs on introduction and json-support For the…
dr jerry
  • 9,768
  • 24
  • 79
  • 122
0
votes
1 answer

Equivalent of spray.can.host-connector.pipelining in Akka HTTP

I have an old application that uses Spray and I'm upgrading it to Akka HTTP. In the config, I have spray.can.host-connector.pipelining = on. Akka HTTP doesn't appear to have this config key anymore. Instead, it has…
user3427070
  • 499
  • 5
  • 14
0
votes
2 answers

Spray to Akka HTTP migration: spray.can.client.request-timeout

I'm migrating an application from Spray to Akka HTTP. In the config, I have: spray { can { client.request-timeout = infinite } } What is the equivalent config for Akka HTTP? It appears that request-timeout is now only available on server,…
user3427070
  • 499
  • 5
  • 14
0
votes
2 answers

Akka-http & scribe for linkedin API: set/get cookie without session (scala)

I am using akka-http for bulding a REST API. (I am new to build REST web services). I don't know how I can get and set cookie without using a session. This cookie must contain encrypt token access. I don't use Play or spray. My code for the moment…
0
votes
0 answers

Marshal and Unmarshal from JSon

I'm new to scala and trying to write a simple restapi. I've got the port binding and everything is fine but i would like to cast the arrived Json to an object. So i find these in the…
hEngi
  • 865
  • 10
  • 23
0
votes
1 answer

How to ignore request body and redirect request using akka-http

Using latest akka-http I want to implement an endpoint which will redirect all incoming upload file requests without consuming request entity. Current implementation is using : put { extractRequest { r: HttpRequest => …
Nikolay
  • 113
  • 1
  • 8