StorageCrypto Documentation

Extensions on SingleEndpoint

Methods

_resolve(with:​)

@_spi(Private)
    func _resolve<R: EndpointResolver>(with session: R) -> AsyncThrowingStream<Output, any Error>  

Fetch responses, from a given Input and URLSession.

Parameters

session R

The EndpointResolver used to fetch the response.

Returns

Some AsyncStream.

erase​ToAny​Single​Endpoint()

func eraseToAnySingleEndpoint() -> AnySingleEndpoint<Output>  

Erase to AnySingleEndpoint.

Returns

A valid AnySingleEndpoint.

erase​ToAny​Loop​Endpoint()

func eraseToAnyLoopEndpoint() -> AnyLoopEndpoint<Output>  

Erase to AnyLoopEndpoint.

Returns

A valid AnyLoopEndpoint.

flat​Map(to:​)

func flatMap<E: Endpoint>(@EndpointBuilder to child: @escaping (Output) -> E) -> FlatMap<Self, E>  

Switch the current endpoint response with a new one fetched from some other (related) endpoint.

Parameters

child @escaping (Output) -> E

Some Endpoint factory.

Returns

Some FlatMap.