api

http4k / org.http4k.traffic / Source

Source

interface Source

Tries to retrieve a stored response for a given request.

Functions

Name Summary
get abstract operator fun get(request: Request): Response?

Companion Object Functions

Name Summary
DiskTree Looks up traffic from the FS, based on tree storage format.fun DiskTree(baseDir: String = "."): Source
MemoryMap Looks up traffic from Memory, based on map storage format.fun MemoryMap(cache: MutableMap<Request, Response>): Source

Inheritors

Name Summary
ReadWriteCache Combined Read/Write storage models, optimised for retrieval.interface ReadWriteCache : Sink, Source