Debian Codegraph @

tests/testthat/fixtures/output/webfakes_response.txt

raw
1 > res
2 <webfakes_reeponse>
3 fields and methods:
4 app # the webfakes_app the response belongs to
5 locals # response-wide shared data
6 get_header(field) # query response header
7 on_response(fun) # call handler function for complete response
8 redirect(path, status) # send redirect response
9 render(view, locals) # render template
10 send(body) # send text or raw data
11 send_file(path, root) # send a file (automatic Content-Type)
12 send_json(object, text, ...)
13 # send JSON data
14 send_status(status) # send HTTP status and empty body
15 set_header(field, value)
16 # set a response header
17 set_status(status) # set response status code
18 set_type(type) # set Content-Type
19 # see ?webfakes_response for details
20