Package: httpbin
httpbin(1): HTTP Request & Response ServiceThis is a fork of the original httpbin project, which is located athttps://github.com/postmanlabs/httpbinWhy fork?  we were unable to get ahold of the folks at postmanlabs to maintain the original project, and httpbin is used for other packages within the python ecosystem, such aspytest-httpbinwhich is in turn used by packages such asrequestsso we have forked this package.  That means that httpbin.org is not actually backed by this repo, but thehttpbin packageis.  Confusing right?  Know anyone at postmanlabs?get in touch.httpbin is aKenneth ReitzProject.Downloading and Runningdockerpullghcr.io/psf/httpbin
dockerrun-p80:8080ghcr.io/psf/httpbinUsinghttpbinas a Libraryhttpbincan be used as a dependency in your own projects by simply addinghttpbinas a dependency.Manually Building the Latest Docker ImageTo build the Docker image yourself, download the latestDockerfileandrequirements.txtfiles from therelease page. Store both file
in the same folder and run:dockerbuild--build-argAPP_VERSION=<your-version>[otherdockerargs].Alternatively, you can re-generate a newrequirements.txtfile usingpip-compile. In that case, be aware that the code has not been
tested against those dependencies and we cannot guarantee that such an image
will run without errors.WhereAPP_VERSIONwill be stored in a docker-label. The default value is an
empty-string.Maintenance"Extra" DependenciesThe project provides two "extras" which contain dependencies that should only
be installed for specific use-cases. They will not be included when usinghttpbinas a dependency, unless they areexplicitlyrequested likehttpbin[mainapp].mainapp: Includes everything needed to runhttpbinas a standalone app.
This is used by the docker image.test: Includes additional dependencies for unit-testing. This is only used
during development.Publishing a new ReleaseReleases (both docker and pypi) are automated via GitHub Actions (See #17).Forpypireleases, the project usestrusted-publishingviathe official
GitHub action.For releases ondocker-hub(when enabled in the CI), the following two
secrets are required:DOCKERHUB_USERNAMEDOCKERHUB_TOKENReleases are triggered on commits tagged withrelease-(for examplerelease-0.10.0).Changelog0.10.2:Added support for Flask 3.00.10.1:Substantial housekeeping, dependency cleanup, image building, and packaging revamp, thanks to @exhuma and @mgorny0.10.0:Override docker image port with HTTPBIN_PORTA number of fixes for code rot, thanks @mgorny and @tjni0.9.2: ??? (never published as a package; seems to be internal to postman)0.7.0: ???0.6.2: ???0.6.0: ???0.5.0Allow /redirect-to to work with multiple methodsAllow MD5 or SHA-256 to be chosen as algorithms for HTTP Digest AuthSet a 10MB limit on /drip0.4.1: Added floating-point support for /delay endpoint0.4.0: New /image/svg endpoint, add deploy to heroku button, add 406 response to /image, and don’t always emit the transfer-encoding header for stream endpoint.0.3.0 A number of new features, including a /range endpoint, lots of bugfixes, and a /encoding/utf8 endpoint0.2.0: Added an XML endpoint.  Also fixes several bugs with unicode, CORS headers, digest auth, and more.0.1.2: Fix a couple Python3 bugs with the random byte endpoints, fix a bug when uploading files without a Content-Type header set.0.1.1: Added templates as data in setup.py0.1.0: Added python3 support and (re)publish on PyPIOfficially Deployed (but out of date) at:http://httpbin.orghttps://httpbin.orghttps://hub.docker.com/r/kennethreitz/httpbin/SEE ALSOhttp://requestb.inhttp://python-requests.orghttps://grpcb.in/go-httpbinjava-httpbin