Skip to contents

Create and run web apps

new_app()
Create a new web application
webfakes_request
A webfakes request object
webfakes_response
A webfakes response object
new_regexp()
Create a new regular expression to use in webfakes routes
new_app_process()
Run a webfakes app in another process
local_app_process()
App process that is cleaned up automatically
server_opts()
Webfakes web server options

Middleware to parse requests

mw_raw()
Middleware to read the raw body of a request
mw_text()
Middleware to parse a plain text body
mw_json()
Middleware to parse a JSON body
mw_multipart()
Parse a multipart HTTP request body
mw_urlencoded()
Middleware to parse an url-encoded request body

Other middleware

mw_etag()
Middleware that add an Etag header to the response
mw_log()
Log requests to the standard output or other connection
mw_static()
Middleware function to serve static files

Templates

tmpl_glue()
glue based template engine

The httpbin app

httpbin_app()
Generic web app for testing HTTP clients

OAuth2.0 apps

oauth2_httr_login()
Helper function to use httr's OAuth2.0 functions non-interactively, e.g. in test cases
oauth2_login()
Helper function to log in to a third party OAuth2.0 app without a browser
oauth2_resource_app()
Fake OAuth 2.0 resource and authorization app
oauth2_third_party_app()
App representing the third-party app