api

http4k / org.http4k.lens / ContentNegotiation

ContentNegotiation

interface ContentNegotiation

Functions

Name Summary
invoke abstract operator fun invoke(expected: ContentType, actual: ContentType?): Unit

Companion Object Properties

Name Summary
None No validation is done on the received content type at allval None: <ERROR CLASS>
NonStrict If present, the received Content-type header passed back MUST equal the expected Content-type, including directiveval NonStrict: <ERROR CLASS>
Strict The received Content-type header passed back MUST equal the expected Content-type, including directiveval Strict: <ERROR CLASS>
StrictNoDirective The received Content-type header passed back MUST equal the expected Content-type, not including the directiveval StrictNoDirective: <ERROR CLASS>