1
我得到了一个环流响应,我不知道该如何处理。Clojure - 环流响应
我在一个参数传递给我的AJAX POST和当它到达的功能在我的Compojure路线,而不是被我通过在原有的参数,我得到一个环流反应是
{:remote-addr 0:0:0:0:0:0:0:1, :params nil, :route-params nil, :headers {origin http://localhost:3300, host localhost:3300, user-agent Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/55.0.2883.87 Chrome/55.0.2883.87 Safari/537.36, content-type application/transit+json, content-length 42, referer http://localhost:3300/view, connection keep-alive, accept application/transit+json, application/transit+transit, application/json, text/plain, text/html, */*, accept-language en-GB,en-US;q=0.8,en;q=0.6, accept-encoding gzip, deflate, br}, :server-port 3300, :keep-alive? true, :uri /add-user!, :server-name ip6-localhost, :query-string nil, :body << stream: {:pending-puts 0, :drained? false, :buffer-size 42, :permanent? false, :type netty, :sink? true, :closed? true, :pending-takes 0, :buffer-capacity 16384, :connection {:local-address ip6-localhost/0:0:0:0:0:0:0:1:3300, :remote-address /0:0:0:0:0:0:0:1:34448, :writable? true, :readable? true, :closed? false, :direction :inbound}, :source? true} >>, :scheme :http, :request-method :post}
为什么这是否发生?
体(其中我相信我的谎言PARAM)是
<< stream: {:pending-puts 0, :drained? false, :buffer-size 30, :permanent? false, :type netty, :sink? true, :closed? true, :pending-takes 0, :buffer-capacity 16384, :connection {:local-address ip6-localhost/0:0:0:0:0:0:0:1:3300, :remote-address /0:0:0:0:0:0:0:1:34580, :writable? true, :readable? true, :closed? false, :direction :inbound}, :source? true} >>
如何处理这个让我的参数超出?
我的参数应该是形式{:id id :pass pass}
感谢
你用什么中间件为你的环形服务器? –
我正在使用compojure,因此我认为ring中间件。 – rbb