Public

Description

The Public response header lists the set of methods supported by the server.

Technical Info

protocolHTTP Header
typeResponse Header
RFCRFC2068

Usage

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.

Syntax

Public = "Public" ":" 1#method

Related Headers

The Allow header may, optionally, be used to indicate methods allowed for the particular requested URI.

Examples

Example Public headers commonly found on the internet.

Public: OPTIONS, MGET, MHEAD, GET, HEAD
Public: OPTIONS, GET, HEAD, POST, PURGE

Security

Unless there is a specific reason to populate this header it should be avoided.