Http Bin

The code for this example is located in the examples.httpbin.manage module.

Pulsar HTTP test application:

python manage.py

Implementation

class examples.httpbin.manage.HttpBin(rule, *routes, **parameters)[source]

The main Router for the HttpBin application

get(request)[source]

The home page of this router

stats(request)[source]

Live stats for the server.

Try sending lots of requests

Server Hooks

This example shows how to use server hooks to log each request

examples.httpbin.config.post_request(response, exc=None)[source]

Handle a post request, response is an instance of HttpServerResponse