Can an external http client make an RPC call to a Worker?

I would like to externally make RPC calls to Workers (mostly for testing) using something like Postman or curl. I'm hoping some general gateway like this exists...
curl -X POST https://worker-url.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "someMethod", "params": {"key1": "value1"}, "id": 1}'
curl -X POST https://worker-url.com \
-H "Content-Type: application/json" \
-d '{"jsonrpc": "2.0", "method": "someMethod", "params": {"key1": "value1"}, "id": 1}'
My current hack is to implement a wrapper Worker http endpoint for each RPC call. It works, but it at takes time, and it feels ugly/redundant? Any suggestions? Thx.
2 Replies
Hard@Work
Hard@Work2mo ago
Nope, the RPC system is internal only
marko.333
marko.3332mo ago
That's too bad, but thanks for the response.
Want results from more Discord servers?
Add your server