Skip to main content
Go to Latest
File
---host: <%= Deno.env.get('HOST') || 'https://faker.deno.dev' %>explanation: If the first block does not have a request its metadata will be use globally for all requests.---###---name: optional name---GET https://example.com

HTTP/1.1 200 OKContent-Type: text/html; charset=UTF-8

###---display: fullredirect: followdescription: you can pass the requestInit has metadata: fetch api doc: https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/fetch#parameters---GET /image/avatarquiet: true
###---description: test the response body json declaring an expected responsename: MUST FAIL because the response it not has all the keys.---GET https://httpbin.org/json
HTTP/1.1 200 OKContent-Type: application/json
{ "slideshow": { "title": "Sample Slide Show" }, "unexpected": "this should not be here"}