ktor
2.2.x
Select version
3.3.x
3.2.x
3.1.x
3.0.x
2.3.x
2.2.x
2.0.x
1.6.x
ktor-server-content-negotiation
/
io.ktor.server.plugins.contentnegotiation
/
ContentTypeWithQuality
Content
Type
With
Quality
data
class
ContentTypeWithQuality
(
val
contentType
:
ContentType
,
val
quality
:
Double
=
1.0
)
A pair of
ContentType
and
quality
usually parsed from the
HttpHeaders.Accept
headers.
Constructors
Properties
Parameters
Parameters
content
Type
quality
Constructors
Content
Type
With
Quality
Link copied to clipboard
fun
ContentTypeWithQuality
(
contentType
:
ContentType
,
quality
:
Double
=
1.0
)
Properties
content
Type
Link copied to clipboard
val
contentType
:
ContentType
quality
Link copied to clipboard
val
quality
:
Double
=
1.0