lookup> Prefer

Prefer

is used to indicate that particular server behaviors are preferred by the client, but not required for successful completion of the request.

请求头RFC7240#2
NamePrefer
Type请求头
SpecificationRFC7240#2

is used to indicate that particular server behaviors are preferred by the client, but not required for successful completion of the request.

Prefer: return=representation

RFC7240#2

What does the Prefer header do?

is used to indicate that particular server behaviors are preferred by the client, but not required for successful completion of the request.

Is Prefer a request or response header?

It is classified as a request header and can appear in requests or responses depending on context.

Related status codes