![](/img/trans.png)
[英]event machine with em http gem cannot load middleware oauth
我正在嘗試使用TradeKing API來獲取股票價格流 https://developers.tradeking.com/documentation/ruby-streaming 或下面復制和粘貼的代碼 獲取密鑰,機密和令牌后,我構建了一個簡單的Ruby應用程序來處理代碼, ...
[英]event machine with em http gem cannot load middleware oauth
我正在嘗試使用TradeKing API來獲取股票價格流 https://developers.tradeking.com/documentation/ruby-streaming 或下面復制和粘貼的代碼 獲取密鑰,機密和令牌后,我構建了一個簡單的Ruby應用程序來處理代碼, ...
[英]Get only response headers in em_http_request
如何在em_http_request中僅獲取響應標頭? 我嘗試使用此代碼: 但我不想接受整個身體。 如何停止請求的執行? http.close不起作用。 UPD http.instance_variable_get(:'@conn').close幫助我,但也許您知道更 ...
[英]Simple POST request failing with em-http-request
以下查詢適用於requestmaker : URI: 查詢: 但這不適用於em-http-request : 哪個打印There was an error 。 我感到很沮喪,因為這個簡單的示例可以與其他任何發送請求的方法一起使用,並且我檢查了一下自己的用法是否有誤 ...
[英]Using EventMachine to make multiple request using same connection?
我有一個正在運行的EventMachine,正在偵聽UDP數據包。 每次收到UDP數據包時,我都希望使用REST調用將數據轉發到某個數據庫。 我創建了一個EM :: Connection子類,其中的receive_data方法通過REST調用轉發數據。 由於數據的頻率很高,因此我想重用 ...
[英]EM-HTTP-REQUEST and SINATRA - combining/merging multiple api request into one result?
我第一次處理sinatra和並行em-http-request。 而且我不知道如何合並/合並為一個結果以及何時使用EventMachine.stop? 。 考慮一下: ...
[英]em-synchrony using http.get and iterators causing can't yield in root Fiber error
一個非常簡單的例子,我得到根光纖錯誤。 我可以在這里使用async,但不能使用同步http請求。 ...
[英]How to test for asynchronous HTTP requests in ruby using EventMachine
我收到RabbitMQ隊列的消息,每個消息都是我要向其發出請求的URL。 現在,我使用AMQP gem來預訂隊列,並且使用EventMachine,因此我使用em-http-request庫發出http請求。 根據此處的文檔: https : //github.com/igrigorik/e ...