Requests Documentation

Structure Static

public struct Static<Output>  

A struct defining some external value to appear inside an endpoint chain (e.g. returning a single value, returning an error, etc).

Initializers

init(_:​)

public init(_ content: () throws -> Output)  

Init.

Parameters

content () throws -> Output

The content factory.

init(_:​)

public init(_ output: Output)  

Init.

Parameters

output Output

A single output.

init(error:​_:​)

public init(error: any Error)  

Init.

Parameters

error any

A single error.