Skip to main content
Go to Latest
File
---host: <%= Deno.env.get('HOST') || 'https://faker.deno.dev' %>---###
POST /pong?quiet=trueContent-Type: application/jsonx-powered-by: Deno
{ "message":"pong", "quiet":true }
HTTP/1.1 200 OKContent-Type: application/jsonx-powered-by: Deno

{ "message":"pong", "quiet": false }###
POST /pong?quiet=true
hello
HTTP/1.1 200 OK
hello<% assertEquals(await response.getBody(), "hello", 'not body extracted') %>
###---name: must fail with custom error---POST /pong?quiet=true
hello
HTTP/1.1 200 OK
hello<% assertEquals(await response.getBody(), "hola", 'failed!') %>

###---name: must fail because of headers---GET /pong?quiet=truex-quiet: true
HTTP/1.1 200 OKx-quiet: false