HTTP Method
HTTP-Methode
Eine HTTP-Methode ist ein Wort in einer Anfrage, das angibt, welche Art von Aktion beabsichtigt ist. Jede Methode hat Standardregeln für Sicherheit, Wiederholungen und Caching.
Ein weiteres Beispiel
Eine Dokumenten-API verwendet `GET`, um ohne Nebenwirkungen zu lesen, und `PUT`, um eine bekannte Ressource zu ersetzen. `PATCH` wird verwendet, um einen Teil zu bearbeiten, und `DELETE`, um Entfernung anzufordern. Ein Link-Checker kann sicher `HEAD` senden. Ein Crawler darf niemals eine Rechnung über `GET` genehmigen.
Hauptteile
- 01Methoden-Token
- 02Definierte Semantik
- 03Zielressource
Verwenden Sie es, wenn
Wählen Sie eine registrierte Methode, deren Standardbedeutung zur Aktion passt. Dokumentieren Sie ihre Bedingungen, das Datenformat und die Antwort.
Nutze es nicht, wenn
Ändere Daten nicht mit einer sicheren Methode. Setze nicht jede Aktion hinter `POST`, wenn Caches und andere Zwischensysteme Standardbedeutungen benötigen.
In Code verwendeter Name
GET, HEAD, POST, PUT, DELETE, CONNECT, OPTIONS, TRACE, PATCH Vor dem Ausliefern
Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback.
Outcome: Complete the task with HTTP-Methode (HTTP Method). User context: Eine Dokumenten-API verwendet `GET`, um ohne Nebenwirkungen zu lesen, und `PUT`, um eine bekannte Ressource zu ersetzen. `PATCH` wird verwendet, um einen Teil zu bearbeiten, und `DELETE`, um Entfernung anzufordern. Ein Link-Checker kann sicher `HEAD` senden. Ein Crawler darf niemals eine Rechnung über `GET` genehmigen. Technical concept or control: HTTP-Methode (HTTP Method). Why it fits: Wählen Sie eine registrierte Methode, deren Standardbedeutung zur Aktion passt. Dokumentieren Sie ihre Bedingungen, das Datenformat und die Antwort. Do not use it when: Ändere Daten nicht mit einer sicheren Methode. Setze nicht jede Aktion hinter `POST`, wenn Caches und andere Zwischensysteme Standardbedeutungen benötigen. Engineering requirements: Define inputs, outputs, contracts, and rules that must always hold. Set authorization and input checks. Define failures, timeouts, retries, one-time effects, data moves, and compatibility limits. Operations: Add useful signals and logs that hide sensitive data. Set capacity limits and write an operator guide. Test recovery and rollback. Acceptance criteria: Contract and failure-path tests pass. Data and authorization rules still hold during retries and partial failures. Check performance limits, monitoring, recovery, and rollback. Evidence and limits (evidence boundary): Der Standard deckt nur den aufgeführten Umfang ab. Er wählt nicht den visuellen Stil, die Produktentscheidung oder das Vibulary-Beispiel aus. Unknowns to confirm: Where the code runs, data stores, traffic shape, consistency needs, and the security boundary. Also confirm the compatibility period, service goals, and rollback limits.
Diese Anfrage prüfen
Review how HTTP-Methode (HTTP Method) is used now. Definition: Eine HTTP-Methode ist ein Wort in einer Anfrage, das angibt, welche Art von Aktion beabsichtigt ist. Jede Methode hat Standardregeln für Sicherheit, Wiederholungen und Caching. Release checks: Check contracts and invariants, authorization, and input limits. Test retries, one-time effects, timeouts, and partial failures. Verify data integrity, compatibility, monitoring, recovery, and rollback. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.