cUrls
httpbin
cUrls | httpbin | |
---|---|---|
1 | 81 | |
2 | 12,902 | |
- | 0.5% | |
0.0 | 0.0 | |
over 2 years ago | 8 months ago | |
Go | Python | |
MIT License | 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.
cUrls
-
Simple tool crawl urls form domain
git clone https://github.com/ductnn/cUrls.git cd cUrls go get
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
-
How to protect API Keys in React projects using Gateweaver
policyDefinitions: cors: origin: "${CLIENT_URL}" endpoints: - path: "/example" target: url: "https://httpbin.org/bearer" request: headers: Authorization: "Bearer ${API_KEY}" policies: - cors
What are some alternatives?
michelin-my-maps - Go Colly spider which curates a list of awesome restaurants from the Michelin Guide
echo-server - An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.
httpbin - HTTP Request & Response Service, written in Python + Flask. [Moved to: https://github.com/postmanlabs/httpbin]
gabbi - Declarative HTTP Testing for Python and anything else
pagser - Pagser is a simple, extensible, configurable parse and deserialize html page to struct based on goquery and struct tags for golang crawler
novelai-api - Python API for the NovelAI REST API
colly - Elegant Scraper and Crawler Framework for Golang
azure-docs - Open source documentation of Microsoft Azure
flasgger - Easy OpenAPI specs and Swagger UI for your Flask API [Moved to: https://github.com/flasgger/flasgger]
echo-server - An HTTP and WebSocket "echo" server for testing proxies and HTTP clients.
gunicorn - gunicorn 'Green Unicorn' is a WSGI HTTP Server for UNIX, fast clients and sleepy applications.
cheerio - The fast, flexible, and elegant library for parsing and manipulating HTML and XML.