PrismCore / API reference / Loopback server

Enumeration

ProviderResult

enum ProviderResult

Declared in Sources/PrismCore/Loopback/SegmentProvider.swift · PrismCore 3.5.4

What a provider can answer with for one request path.

Cases

case data(Data, contentType: String)

The payload is in hand — the server frames a Content-Length response.

case notFound

No such path, and no point waiting for one — 404.

case pending(PendingResult)

The payload is still being produced. The server races the resolution against its slow-serve threshold, so a producer that needs seconds does not have to lie about it (see LoopbackHTTPServer for the framing).

Generated from the public symbols of PrismCore 3.5.4. All types