Skip to content
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

httpclient Docs Wrong #5863

Closed
bitnom opened this issue May 21, 2017 · 0 comments
Closed

httpclient Docs Wrong #5863

bitnom opened this issue May 21, 2017 · 0 comments
Labels
Documentation Content Related to documentation content (not generation). Easy

Comments

@bitnom
Copy link

bitnom commented May 21, 2017

The example (https://nim-lang.org/docs/httpclient.html) doesn't compile...

import httpclient, json

let client = newHttpClient()
client.headers = newHttpHeaders({ "Content-Type": "application/json" })
let body = %*{
    "data": "some text"
}
echo client.request("http://some.api", httpMethod = HttpPost, body = $body)
@dom96 dom96 added Documentation Content Related to documentation content (not generation). Easy labels May 21, 2017
@dom96 dom96 closed this as completed in 64cbcec Jun 14, 2017
dom96 added a commit that referenced this issue Jun 14, 2017
Working example in comment to resolve #5863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation Content Related to documentation content (not generation). Easy
Projects
None yet
Development

No branches or pull requests

2 participants