http4k / org.http4k.lens / ContentNegotiation
interface ContentNegotiation
Name | Summary |
---|---|
invoke | abstract operator fun invoke(expected: ContentType , actual: ContentType ?): Unit |
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> |