protocol-registries / http-fields

Registry for HTTP field names (headers and trailers)
13 stars 3 forks source link
http http-fields http-headers iana iana-registry registry

HTTP Field Name Registration Requests

This repository's issues list manages requests to add and change entries in the HTTP Field Name Registry. Please note our contribution terms.

Your Experts are currently @mnot and @royfielding.

See the HTTP specification for more information about the registration process and requirements for registration.

When to Register

Registration is intended to:

  1. Avoid conflicting uses of a field name
  2. Allow the documentation associated with a field to be discovered
  3. Offer guidance regarding a field's definition during the process of registration

It's not necessary to register fields that are only used in controlled deployments -- in particular, applications that don't need to interoperate with other implementations. This includes internal and private uses of HTTP, and HTTP APIs whose clients are specific to that service. However, these fields can still be registered (typically, as provisional) if you wish.

Generally, a registration request should be made when your document is mature enough for wide review. If your reference is an Internet-Draft, that means when it's adopted by a stream (e.g., the IETF stream, the Independent stream), not beforehand. If your reference is in another standards body, a request can be made before the document is finalized.

If your reference is from an Open Source project, community or commercial group, a request can be made once your document becomes public, but anticipatory requests are discouraged, and may be refused or delayed.

Creating a Registration Request

A registration request consists of the following template:

Choosing Your Field Name

The HTTP specification advises authors of specifications defining new fields to choose a short but descriptive field name. Short names avoid needless data transmission; descriptive names avoid confusion and "squatting" on names that might have broader uses.

To that end, limited-use fields (such as a header confined to a single application or use case) are encouraged to use a name that includes that use (or an abbreviation) as a prefix; for example, if the Foo Application needs a description field, it might use Foo-Desc; Description is too generic, and Foo-Description-Field is needlessly long.

While the field-name syntax is defined to allow any token character, in practice some implementations place limits on the characters they accept in field-names. To be interoperable, new field names should constrain themselves to alphanumeric characters, -, and ., and should begin with a letter. For example, the underscore (_) character can be problematic when passed through non-HTTP gateway interfaces.

Field names ought not be prefixed with X-; see BCP178 for further information.

Other prefixes are sometimes used in HTTP field names; for example, Accept- is used in many content negotiation headers, and Content- is used as explained in Section 6.4 of HTTP. These prefixes are only an aid to recognizing the purpose of a field, and do not trigger automatic processing.

Choosing the Right Status

Fields defined by standards-defined specifications will have a status of "permanent"; most other fields will have a status of "provisional." See the HTTP specification for details. Note that we use this list to determine what is a recognised standards organisation.

As per IANA guidelines, field names that are no longer in use should be marked as "obsoleted", and those whose use is not recommended should have a status of "deprecated".

Suitable Specification Documents

Specification documents are required for permanent registration, and encouraged for provisional registrations. They need to be publicly available and reasonably stable.

Defining Field Semantics and Other Considerations

A checklist of important considerations for new fields is available in the HTTP specification.

Submitting Your Request

The request can be made by:

Once approved, your request will be incorporated into the IANA registry, whereupon it will be officially registered.