Zum Hauptinhalt springen

3.2. Beispiel für OPTIONS-Anfrage und -Antwort

3.2. Beispiel für OPTIONS-Anfrage und -Antwort

Anfrage:

OPTIONS /example/buddies.xml HTTP/1.1
Host: www.example.com

Antwort:

HTTP/1.1 200 OK
Allow: GET, PUT, POST, OPTIONS, HEAD, DELETE, PATCH
Accept-Patch: application/example, text/example

Die Beispiele zeigen einen Server, der PATCH im Allgemeinen unterstützt und zwei hypothetische Patch-Dokumentformate verwendet.