We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I'm trying to run:
import json_rpc/rpcserver var router = newRpcRouter() router.rpc: result = %"Hello"
But I run into: nim-chronos/chronos/apps/http/httpcommon.nim(35, 28) Error: undeclared identifier: 'MediaType'
nim-chronos/chronos/apps/http/httpcommon.nim(35, 28) Error: undeclared identifier: 'MediaType'
Thx
The text was updated successfully, but these errors were encountered:
It seems like we have another generic sandwich issue nim-lang/Nim#11225
In the mean time you can solve that with import httputils for https://github.com/status-im/nim-http-utils/blob/e88e231/httputils.nim#L340-L342
import httputils
Sorry, something went wrong.
The snippet is super outdated, using this should ok. fixed by #178, closing.
import json_rpc/rpcserver var router = RpcServer.new() router.rpc("something") do(): return %"Hello"
No branches or pull requests
Hi, I'm trying to run:
But I run into:
nim-chronos/chronos/apps/http/httpcommon.nim(35, 28) Error: undeclared identifier: 'MediaType'
Thx
The text was updated successfully, but these errors were encountered: