api

http4k / org.http4k.contract / PreFlightExtraction

PreFlightExtraction

interface PreFlightExtraction : (RouteMeta) -> List<LensExtractor<Request, *>>

Companion Object Properties

Name Summary
All Check the entire contract, including extracting the body, before passing it to the underlying HttpHandler.val All: <ERROR CLASS>
IgnoreBody Check all parts of the contract apart from the body, relying on the HttpHandler code to raise a correct LensFailure if extraction fails. Use this option to avoid re-extracting the body multiple times.val IgnoreBody: <ERROR CLASS>
None Check none the contract, relying entirely on the HttpHandler code to raise a correct LensFailure if extraction fails. Use this option to fully optimise performance, at the risk of not checkingval None: <ERROR CLASS>