Are weight values required in an Accept Header with multiple values?

teuber789

Per the spec, the HTTP Accept header can have multiple values, like so:

Accept: text/html, application/xhtml+xml, application/xml;q=0.9, */*;q=0.8

Source

My question is this: do Accept headers with multiple values need to have at least one weight? Or are they still valid if none of the content types have a weight?

In other words, would this Accept header still be valid according to the spec?

Accept: text/html, application/xhtml+xml, application/xml, */*

Thanks a bunch in advance!

StefanOS

The quality values are optional, but then each entry has an implied quality value of 1.

https://developer.mozilla.org/en-US/docs/Glossary/Quality_values

The importance of a value is marked by the suffix ';q=' immediately followed by a value between 0 and 1 included, with up to three decimal digits, the highest value denoting the highest priority. When not present, the default value is 1.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

Creating a Header Filter in Tabulator for Choice Field that Can Accept Multiple Values

TypeError: multiple values for argument 'weight_decay'

Add Multiple Header Values in Swagger

Returning multiple values in header file

Accept multiple values on proc macro attribute

Merge multiple dictionaries and aggregate values where required

Mongoose schema required field not working for multiple values

Replacing values with weight in a table

split dataframe column header and values into multiple columns

Nginx - How to add multiple values to header

Split multiple values with header included into columns

Java script regex to accept multiple values including empty in Mountebank predicates

How do you accept multiple values for a switch case?

how to create a single annotation accept multiple values in Java

How to accept multiple values into the same key parameter, as an array?

jQuery form each input accept only multiple values

CAN THE COUNT FUNCTION IN SQL SERVER DB ACCEPT MULTIPLE VALUES

$_GET to accept values with space

Font-weight values not working

How to make Ecto.changeset validate_required accept blank values?

match / find rows based on multiple required values in a single row in R

Google apps script return correct values + multiple not required commas

Adding a header row with values for each column to multiple CSV files

Ordering of multiple values in content-encoding header in http request

Concatenate column values when header is Matching from multiple files

How to convert json to csv with single header and multiple values?

NGINX 'Access-Control-Allow-Origin' header contains multiple values

The 'Access-Control-Allow-Origin' header contains multiple values

The 'Access-Control-Allow-Origin' header contains multiple values