The Public response header lists the set of methods supported by the server.
protocol | HTTP Header |
type | Response Header |
RFC | RFC2068 |
The Public header is generated by the Origin Server to indicate which methods the server supports.
It is intended to tell the client specifically which unusual methods are supported. The methods do not need to be applicable to the requested URI.
Unusual headers are those that fall outside the usual list; GET, HEAD, POST,
PUT, DELETE, CONNECT, OPTIONS, TRACE
and PATCH, indicating special functionality supported by the server.
This header only applies to the server directly connected to the client. If the response passes through a proxy then the proxy must
delete or replace the header with the one applicable to its own capabilities.
Public = "Public" ":" 1#method
The Allow header may, optionally, be used to indicate methods allowed for the particular requested URI.
Example Public headers commonly found on the internet.
Public: OPTIONS, MGET, MHEAD, GET, HEAD
Public: OPTIONS, GET, HEAD, POST, PURGE
Unless there is a specific reason to populate this header it should be avoided.