を含むリクエストをwith-fake-http
傍受するにはどうすればよいですか。次のコードは例外を生成しますhttp/get
:query-params
(require
'[org.httpkit.client :as http]
'[org.httpkit.fake :refer :all]
)
(with-fake-http ["localhost?q=hello" "hello param"]
(println @(http/get "localhost" :query-params {:q "hello"})))
CompilerException java.lang.IllegalArgumentException: Attempted to perform GET on unregistered URL localhost and real HTTP requests are disabled., コンパイル:(web/db_test.clj:57:1)
ご協力いただきありがとうございます。