HTTP
Simuler une réponse 103 Early Hints
Used to return some response headers before the final HTTP message. Allows the browser to start preloading resources while the server prepares the response.
Voir la référence complète →1 Réponse HTTP
HTTP/1.1 103 Early Hints Content-Type: application/json Date: Tue, 25 Feb 2026 12:00:00 GMT
2 Tester avec curl
curl -i https://httpbin.org/status/103
3 Retourner 103 Early Hints dans votre framework
django
from django.http import HttpResponse
def my_view(request):
return HttpResponse(status=103) # Early Hints
flask
from flask import Flask
app = Flask(__name__)
@app.route("/endpoint")
def my_endpoint():
return "", 103 # Early Hints
fastapi
from fastapi import FastAPI
from fastapi.responses import Response
app = FastAPI()
@app.get("/endpoint")
def my_endpoint():
return Response(status_code=103) # Early Hints
express.js
// Express.js
app.get('/endpoint', (req, res) => {
res.sendStatus(103); // Early Hints
});
spring boot
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
@RestController
public class MyController {
@GetMapping("/endpoint")
public ResponseEntity<Void> myEndpoint() {
return ResponseEntity
.status(103) // Early Hints
.build();
}
}
go net/http
package main
import "net/http"
func myHandler(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(103) // Early Hints
}
ruby on rails
class MyController < ApplicationController
def my_action
head :early_hints
end
end
asp.net core
// ASP.NET Core Minimal API
app.MapGet("/endpoint", () =>
Results.StatusCode(103) // Early Hints
);