Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Also, response headers can be set when a MessageBodyWriter#writeTo() method is called.

Anchor
CommonHeaders
CommonHeaders

Common Headers

Content-Type

...

The Content-Length is useful for determining the entity's length. If possible, MessageBodyWriter entity providers will automatically set the Content-Length if possible, and some containers will set the response Content-Length if the entity is small. See the HTTP spec for more details on when this header is set and valid.

Anchor
RequestHeaders
RequestHeaders

Common Request HTTP Headers

...

Note that date formats are specified in the HTTP spec.

Anchor
ResponseHeaders
ResponseHeaders

Common Response HTTP Headers

...