Commit Graph

12 Commits

Author SHA1 Message Date
Brett Randall 2f3921259b Corrected repository URL in app.json.
Signed-off-by: Brett Randall <javabrett@gmail.com>
2018-11-07 17:25:24 +11:00
Florian Bruhin 6858420e24 Turn off tracking unless HTTPBIN_TRACKING is set.
Fixes #245.
2015-08-31 20:49:12 +02:00
Dave Challis 414a719b42 Added endpoints '/bytes/:n', '/stream-bytes/:n' and '/links/:n'.
'/bytes/:n' takes and optional 'seed' integer parameter, and returns n random
bytes of binary data (limited to 100KB in size).

'/stream-bytes/:n' is the same as above, but streams the data.  As well as a
'seed' parameter, it accepts a 'chunk_size' parameter, which determines how
many bytes are in each packet that is streamed.

'/links/:n' generates a page containing n links, each of which links to another
page containing those n links. The value of n is limited to 200.
2013-06-05 17:16:24 +01:00
Bob Carroll 9c7d3269c5 added redirect-to endpoint for testing arbitrary redirects 2013-05-30 11:00:06 -07:00
Matt Robenolt 27e3e7f426 Handle If-None-Match 2013-05-19 11:21:05 -07:00
Cory Benfield a9dca7398c Add basic Cache endpoint. 2013-05-11 09:55:35 +01:00
Steven Honson b1196a239b Support for setting multiple cookies in a single request. 2012-08-20 21:54:27 +10:00
Radomir Stevanovic 9a56bb8dd0 bugfix: JSON-safe encoding of raw binary data/files
Encoding of the received files and/or body data was failing in case of raw
binary data being POSTed/PUT/etc. (The exact trigger was actually a non-UTF-8
data stream, since Flask's `jsonify`, i.e. `simplejson.dumps` assumes UTF-8.)

Binary data in a JSON response are now encoded as "data" URLs, according to
RFC 2397. "Data" URL scheme was chosen for its simplicity and clarity. MIME
type is included. Plain text is passed thru unmodified, as before.

Also, tests demonstrating the bug/fix added to `test_httpbin.py`.
2012-08-14 22:57:35 +02:00
Flavio Percoco Premoli 6a3a2fb63a updated README 2012-06-30 02:08:36 +02:00
Kenneth Reitz d00a865e57 Added Kyle Conroy to AUTHORS 2011-10-29 15:51:22 -03:00
Kenneth Reitz 18e2087a56 Added contribs to AUTHORS 2011-10-09 08:46:03 -04:00
Kenneth Reitz 53441fe9fa Add Zbigniew Siciarz to authors 2011-06-13 09:08:25 -04:00