http
httpbin

http | httpbin | |
---|---|---|
- | 82 | |
12 | 12,938 | |
- | 0.4% | |
0.0 | 0.0 | |
about 10 years ago | 9 months ago | |
Elixir | Python | |
ISC License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
http
We haven't tracked posts mentioning http yet.
Tracking mentions began in Dec 2020.
httpbin
-
Using cURL Inside a Docker Container
For example, If we want to test sending HTTP requests, we can use the service httpbin.
-
5 Essential Patterns for Building Resilient Java Microservices: A Developer's Guide
@Bean public RouteLocator customRouteLocator(RouteLocatorBuilder builder) { return builder.routes() .route("path_route", r -> r.path("/get") .uri("http://httpbin.org")) .route("host_route", r -> r.host("*.myhost.org") .uri("http://httpbin.org")) .build(); }
- Spring boot 3 RestClient and RestTemplate logging http requests and response
-
Create your K3S lab on Google Cloud
Create a Dockerfile for your app, we will use the HttpBin API which allows to test all the request we can make to a Rest API :
-
Unit testing in Python with sheepy
from sheepy.sheeptest import SheepyTestCase class TestHttpBinApi(SheepyTestCase): def __init__(self): super().__init__(base_url="https://httpbin.org") def test_get_status(self): response = self.api.get("/status/200") self.assertStatusCode(response, 200) def test_get_json(self): response = self.api.get("/json") self.assertStatusCode(response, 200) self.assertJsonResponse(response) self.assertResponseContains(response, "slideshow") def test_post_data(self): payload = {"name": "SheepyTest", "framework": "unittest"} response = self.api.post("/post", json=payload) self.assertStatusCode(response, 200) self.assertJsonResponse(response) self.assertResponseContains(response, "json") self.assertEqual(response.json()["json"], payload) def test_put_data(self): payload = {"key": "value"} response = self.api.put("/put", json=payload) self.assertStatusCode(response, 200) self.assertJsonResponse(response) self.assertResponseContains(response, "json") self.assertEqual(response.json()["json"], payload) def test_delete_resource(self): response = self.api.delete("/delete") self.assertStatusCode(response, 200) self.assertJsonResponse(response)
-
Host a Reverse Proxy in Seconds
curl --request POST -d '{"message":"hello"}' \ https://matts-org-a0696.blackbird-relay.a8r.io/proxy/post { "args": {}, "data": "{\"message\":\"hello\"}", "files": {}, "form": {}, "headers": { "Accept": "*/*", "Content-Length": "19", "Content-Type": "application/json", "Host": "httpbin.org", "User-Agent": "curl/8.6.0" }, "json": { "message": "hello" }, "url": "https://httpbin.org/post" }
- Nextjs中使用axios实现一个动态的下载/上传进度条
-
Metrics Can Fool You: Measuring Execution Time in Connection-Pooled Environments
To simulate delays in the external service, we will use the httpbin Docker image. Httpbin provides an easy-to-use HTTP request and response service, which we can use to create artificial delays in our requests.
-
OpenResty on NixOS for an API Gateway
## file: ./configuration.nix { pkgs, ... }: let thisVersion = "0.0.1"; in { boot.loader.systemd-boot.enable = true; boot.loader.efi.canTouchEfiVariables = true; networking.firewall.allowedTCPPorts = [ 22 80 ]; users.users.root = { initialPassword = "hebele-hubele"; openssh.authorizedKeys.keys = [ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIJIQtEmoHu44pUDwX5GEw20JLmfZaI+xVXin74GI396z" "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILdd2ubdTn5LPsN0zaxylrpkQTW+1Vr/uWQaEQXoGkd3" ]; }; services.openssh.enable = true; services.nginx = { enable = true; package = pkgs.openresty; virtualHosts."localhost" = { default = true; locations."/" = { return = "200 'Hello World!'"; }; locations."/version" = { extraConfig = '' default_type application/json; content_by_lua_block { ngx.say("{\"version\":\"${thisVersion}\"}") } ''; }; locations."/proxy" = { proxyPass = "http://httpbin.org/"; }; locations."/proxy/rewrite" = { proxyPass = "http://httpbin.org/"; extraConfig = '' header_filter_by_lua_block { if ngx.req.get_method() == "POST" and ngx.status == 200 then ngx.status = 201 end } ''; }; }; }; system.stateVersion = "24.05"; }
-
Differentiating rate limits in Apache APISIX
routes: - uri: /get upstream: nodes: "http://httpbin.org:80": 1 plugins: limit-count: #1 count: 1 #2 time_window: 60 #2 rejected_code: 429 #3 #END
What are some alternatives?
bolt - Simple and fast http proxy living in the Erlang VM
echo-server - An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.
elli - Simple, robust and performant Erlang web server
echo-server - An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.
mochiweb - MochiWeb is an Erlang library for building lightweight HTTP servers.
novelai-api - Python API for the NovelAI REST API
httpoison - Yet Another HTTP client for Elixir powered by hackney
bruno - Opensource IDE For Exploring and Testing Api's (lightweight alternative to postman/insomnia)
bandit - Bandit is a pure Elixir HTTP server for Plug & WebSock applications
azure-docs - Open source documentation of Microsoft Azure
actix-web - Actix Web is a powerful, pragmatic, and extremely fast web framework for Rust.
gabbi - Declarative HTTP Testing for Python and anything else
