-
Notifications
You must be signed in to change notification settings - Fork 54
New issue
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
Use HTTP instead of TCP and Go RPC #21
Comments
Do you mean JSON-RPC via HTTP? |
No, I'd like to remove RPC, and introduce HTTP API such as REST. But I'm not sure it is the best design. |
I want client like this. #content with urlEncode
curl http://127.0.0.1:2489/copy?content=%e6%88%91%e6%98%af%e7%b2%98%e8%b4%b4%e6%9d%bf&line-ending=CRLF
curl http://127.0.0.1:2489/paste?line-ending=CRLF
#url with urlEncode
curl http://127.0.0.1:2489/open?url=https%3a%2f%2fgithub.com%2flemonade-command%2flemonade |
Only use HTTP GET. also can use |
I prefer use POST for copy. |
I agree use POST. that rest. |
|
I test server REST API use curl is ok, I'll write a client. |
I release this feature in https://github.com/hanxi/lemonade/releases/tag/v2.0.0-pre |
At the start, I want to use it for a while. quit last. Becase so simple, I rewrite one in roperate。 And add get host clip image。 |
No description provided.
The text was updated successfully, but these errors were encountered: