mirror of
https://github.com/CommunitySolidServer/CommunitySolidServer.git
synced 2024-10-03 14:55:10 +00:00
feat: Reject unacceptable content types
This commit is contained in:
@@ -7,7 +7,12 @@ export interface RepresentationPreference {
|
||||
*/
|
||||
value: string;
|
||||
/**
|
||||
* How important this preference is in a value going from 0 to 1.
|
||||
* How preferred this value is in a number going from 0 to 1.
|
||||
* Follows the quality values rule from RFC 7231:
|
||||
*
|
||||
* "The weight is normalized to a real number in the range 0 through 1,
|
||||
* where 0.001 is the least preferred and 1 is the most preferred; a
|
||||
* value of 0 means "not acceptable"."
|
||||
*/
|
||||
weight: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user