Movatterモバイル変換


[0]ホーム

URL:


  1. Web
  2. HTTP
  3. Reference
  4. Headers
  5. Accept-Patch

Accept-Patch header

The HTTPAccept-Patchresponse header advertises whichmedia types the server is able to understand in aPATCH request.For example, a server receiving aPATCH request with an unsupported media type could reply with415 Unsupported Media Type and anAccept-Patch header referencing one or more supported media types.

The header should appear inOPTIONS requests to a resource that supports thePATCH method.AnAccept-Patch header in a response to any request method implicitly means that aPATCH is allowed on the target resource in the request.

Note:IANA maintainsa list of official content encodings.Thebzip andbzip2 encodings are non-standard but may be used in some cases, particularly for legacy support.

Header typeResponse header

Syntax

http
Accept-Patch: <media-type>/<subtype>Accept-Patch: <media-type>/*Accept-Patch: */*// Comma-separated list of media typesAccept-Patch: <media-type>/<subtype>, <media-type>/<subtype>

Directives

<media-type>/<subtype>

A single, precisemedia type, liketext/html.

<media-type>/*

A media type without a subtype.For example,image/* corresponds toimage/png,image/svg,image/gif, and other image types.

*/*

Any media type.

Examples

http
Accept-Patch: application/jsonAccept-Patch: application/json, text/plainAccept-Patch: text/plain;charset=utf-8

Specifications

Specification
RFC 5789
# section-3.1

Browser compatibility

Browser compatibility is not relevant for this header.The server sends the header, and the specification doesn't define client behavior.

See also

Help improve MDN

Learn how to contribute

This page was last modified on byMDN contributors.


[8]ページ先頭

©2009-2025 Movatter.jp