Code Explainers
Code explainers tagged #http-headers
javascript
const RATE_LIMIT = 100; const WINDOW_MS = 60 * 1000; const BLOCK_MS = 5 * 60 * 1000;
Building a rate-limiting middleware in Express
rate-limiting
middleware
closures
Intermediate
9 steps
rust
use axum::{ body::Body, extract::Request, http::{header::HeaderValue, HeaderName},
Request ID middleware in Axum
middleware
tracing
request-extensions
Intermediate
7 steps
php
<?php namespace App\Http\Middleware;
Enforcing a JSON Accept header in Laravel
middleware
content-negotiation
http-headers
Beginner
5 steps
rust
use axum::{ body::Body, extract::Path, http::{header, StatusCode},
Streaming file downloads in Axum
streaming
file-serving
path-traversal
Intermediate
8 steps