MediaRange

is one entry of an Accept header: a media range whose type and subtype may each be the wildcard *, weighted by a quality q between 0.0 and 1.0 (defaulting to 1.0).

copy

instantiate

(Fn [(Ref MediaRange a)] MediaRange)

copies a MediaRange.

delete

instantiate

(Fn [MediaRange] ())

deletes a MediaRange. Should usually not be called manually.

init

instantiate

(Fn [String, String, Double] MediaRange)

creates a MediaRange.

prn

instantiate

(Fn [(Ref MediaRange a)] String)

converts a MediaRange to a string.

q

instantiate

(Fn [(Ref MediaRange a)] (Ref Double a))

gets the q property of a MediaRange.

set-q

instantiate

(Fn [MediaRange, Double] MediaRange)

sets the q property of a MediaRange.

set-q!

instantiate

(Fn [(Ref MediaRange a), Double] ())

sets the q property of a MediaRange in place.

set-subtype

instantiate

(Fn [MediaRange, String] MediaRange)

sets the subtype property of a MediaRange.

set-subtype!

instantiate

(Fn [(Ref MediaRange a), String] ())

sets the subtype property of a MediaRange in place.

set-type

instantiate

(Fn [MediaRange, String] MediaRange)

sets the type property of a MediaRange.

set-type!

instantiate

(Fn [(Ref MediaRange a), String] ())

sets the type property of a MediaRange in place.

str

instantiate

(Fn [(Ref MediaRange a)] String)

converts a MediaRange to a string.

subtype

instantiate

(Fn [(Ref MediaRange a)] (Ref String a))

gets the subtype property of a MediaRange.

type

instantiate

(Fn [(Ref MediaRange a)] (Ref String a))

gets the type property of a MediaRange.

update-q

instantiate

(Fn [MediaRange, (Ref (Fn [Double] Double a) b)] MediaRange)

updates the q property of a MediaRange using a function f.

update-subtype

instantiate

(Fn [MediaRange, (Ref (Fn [String] String a) b)] MediaRange)

updates the subtype property of a MediaRange using a function f.

update-type

instantiate

(Fn [MediaRange, (Ref (Fn [String] String a) b)] MediaRange)

updates the type property of a MediaRange using a function f.