Questions tagged [http-kit]

HTTP Kit is a minimalist, efficient, Ring-compatible HTTP client/server for Clojure. It uses a event-driven architecture to support highly concurrent a/synchronous web applications. Feature a unified API for WebSocket and HTTP long polling/streaming.

HTTP Kit is a minimalist, efficient, Ring-compatible HTTP client/server for Clojure. It uses a event-driven architecture to support highly concurrent a/synchronous web applications. Feature a unified API for WebSocket and HTTP long polling/streaming

Information from: http://http-kit.org/

68 questions
0
votes
1 answer

async clojure http-kit client with callback writing to database sqlite3

I am stucked with http-kit async behavior when it comes to write to an sqlite table. The i/o to the database depends on whether I send the code to a boot repl or run it as a boot script. The i/o proceed only in the repl case. What am I missing? Here…
user3639782
  • 487
  • 3
  • 10
0
votes
2 answers

easiest way to use a i/o callback within concurrent http-kit/get instances

I am launching a few hundreds concurrent http-kit.client/get requests provided with a callback to write results to a single file. What would be a good way to deal with thread-safety? Using chanand
user3639782
  • 487
  • 3
  • 10
0
votes
1 answer

How to run http-kit using boot?

I am not able to get any response from the http-kit server when running using boot. It works with jetty. When I run the boot run the it exits after sometime. So I added (boot (wait)) which doesn't terminate, but the server seems to be not running. ;…
user235273
0
votes
1 answer

Retrofit failing to post on samsung s3 android version 4.0.4 while on data

I have an android app that works well on other android devices but it fails on samsung s3 running android version 4.0.4 on data. Retrofit throws 404 (page not found error) but the page exists and if I make the same request on wifi it works well.…
lemaiyan
  • 13
  • 1
  • 5
0
votes
1 answer

http-kit websocket resolve symbol

Problem: I get a null pointer exception when I call the caller function in the below code if I pass it data via json from a javascript socket client. I don't get the error when I run this same code from the repl and I pass it the same data i.e. In…
Hector Lucero
  • 17
  • 1
  • 3
0
votes
1 answer

HTTP-Kit streaming and curl

I tried out the basic example for HTTP streaming of HTTP-Kit (http://www.http-kit.org/server.html#async), but if I curl to the endpoint I get all the messages at once, after the connection is closed (instead of getting them every 200ms, as it works…
egbokul
  • 3,944
  • 7
  • 36
  • 54
0
votes
0 answers

http-kit & compojure on clojure, # symbol in get url query failing

I am having trouble getting the http get query prams due to the # symbol being part of the query string. Ideally the external party should have URL encoded the params but that is not the case. So when I call the :query-string on the received…
sqwale
  • 554
  • 3
  • 24
0
votes
1 answer

Change charset of a response body from UTF-8 to CP1251

I evaluate the following code (org.httpkit.client/get "http://localhost:81" #(clojure.pprint/pprint (.getBytes (:body %)))) It prints [-17, -65, -67, -17, -65, -67] if index.html is in CP1251, and [-48, -80, -48, -79, -48,…
Sergey Filkin
  • 475
  • 1
  • 6
  • 10
1 2 3 4
5