-
Notifications
You must be signed in to change notification settings - Fork 201
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
Send JSON or raw body #27
Comments
Found #21 I couldn't find the source to the http://frisbyjs.com site. Is it available? I'd like to make a PR to the documentation on how to do this. |
Unfortunately, the site is currently in a CMS, so that is why the source is not on GitHub. I do want to move it to a static site or GitHub pages, but it has not been done yet. |
If you have the time I think it'd be beneficial to put a snippet of code on the API docs along the lines of: frisby.create('Post JSON string as body')
.post('http://httpbin.org/post', {
arr: [1, 2, 3, 4],
foo: "bar",
bar: "baz",
answer: 42
}, {json: true})
.expectHeaderContains('Content-Type', 'json')
.toss() to show how to set a JSON object as the body as well as the appropriate JSON headers. |
This has been added to the bottom of the API documentation page: http://frisbyjs.com/docs/api/ |
so site is still in CMS? documentation is really incomplete... |
No - the webiste is in hexo (a node.js static site builder) and lives here now: https://github.com/vlucas/frisby-site |
{ "params": |
I think its because Content-Length: xxx header i missing. |
I'm trying to test a POST where the body type is expected to be JSON (not a query string):
Is this possible?
The text was updated successfully, but these errors were encountered: