This is a pre-production deployment of Warehouse, however changes made here WILL affect the production instance of PyPI.
Latest Version Dependencies status unknown Test status unknown Test coverage unknown
Project Description

Serve HTTP Status by URL

Quickstart

  1. pip install status_server
  2. status_server
  3. curl -i http://localhost:8888/200

What is status_server?

I was playing around with a load testing tool, and I wanted to generate more than one HTTP response type, so I hacked this together.

status_server returns the status code in the request URI. Want a 200? curl http://localhost:8888/200

Want a 404? curl http://localhost:8888/404

What if you want a randomly chosen value from a list of possible return types? curl http://localhost:8888/200/404/503

The above has an equal chance of returning either of the three HTTP status codes. (1/3: 200, 1/3: 404, 1/3: 503)

status_server supports all standard methods for requests:

curl -iX POST http://localhost:8888/200

curl -iX DELETE http://localhost:8888/200

Known Issue

304 (Not Modified) does not work. curl http://localhost:8888/304 will throw an exception and return a 500, not a 304.

Release History

Release History

0.0.1

This version

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

0.0.0

History Node

TODO: Figure out how to actually get changelog content.

Changelog content for this version goes here.

Donec et mollis dolor. Praesent et diam eget libero egestas mattis sit amet vitae augue. Nam tincidunt congue enim, ut porta lorem lacinia consectetur. Donec ut libero sed arcu vehicula ultricies a non tortor. Lorem ipsum dolor sit amet, consectetur adipiscing elit.

Show More

Download Files

Download Files

TODO: Brief introduction on what you do with files - including link to relevant help section.

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date
status_server-0.0.1.tar.gz (3.1 kB) Copy SHA256 Checksum SHA256 Source May 2, 2014

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting