httpbin

repository·master·Indexed 12 days ago

https://github.com/postmanlabs/httpbin

An HTTP Request & Response Service that provides various endpoints to echo back request details, helping developers test and debug HTTP clients, headers, authentication, cookies, and data payloads.

Tokens
282
Snippets
2
Records
3
Agent score
46%

What's inside httpbin

  1. Overview of httpbin

    master
    httpbin is an HTTP Request & Response Service. It provides a variety of endpoints that allow developers to test different aspects of HTTP requests, such as headers, authentication, cookies, and data payloads. It is commonly used for testing HTTP clients and debugging network interactions.
  2. Run httpbin locally using Docker

    master

    You can run a local instance of the httpbin service using Docker. This allows you to test HTTP requests and responses against a local endpoint instead of the public production server.

    1. Pull the official image: docker pull kennethreitz/httpbin
    2. Run the container mapping port 80 of the container to port 80 on your host: docker run -p 80:80 kennethreitz/httpbin
    docker pull kennethreitz/httpbin
    docker run -p 80:80 kennethreitz/httpbin
  3. Run httpbin using Docker Compose

    master

    You can deploy httpbin as a service using Docker Compose. The provided configuration builds the service from the local directory and maps port 80 of the host to port 80 of the container.

    version: '2'
    services:
        httpbin:
          build: '.'
          ports:
            - '80:80'