Functions
The following functions are available globally.
-
onIncomingRequest(_:
Asynchronous) Undocumented
Declaration
Swift
public func onIncomingRequest(_ handler: @escaping (_ req: IncomingRequest, _ res: OutgoingResponse) async throws -> Void) async throws
-
fetch(_:
Asynchronous_: ) Undocumented
Declaration
Swift
public func fetch(_ url: URL, _ options: FetchRequest.Options = .options()) async throws -> FetchResponse
-
fetch(_:
Asynchronous_: ) Undocumented
Declaration
Swift
public func fetch(_ urlPath: String, _ options: FetchRequest.Options = .options()) async throws -> FetchResponse
-
fetch(_:
Asynchronousorigin: streaming: _: ) Undocumented
Declaration
Swift
public func fetch ( _ request: IncomingRequest, origin: String, streaming: Bool = true, _ options: FetchRequest.Options = .options() ) async throws -> FetchResponse