Structures
The following structures are available globally.
-
Use an Array of
See moreInterceptoras a singleInterceptorDeclaration
Swift
public struct CompositeInterceptor : ExpressibleByArrayLiteral, Sequenceextension CompositeInterceptor: Interceptor -
Constructs
multipart/form-datafor uploads within an HTTP or HTTPS body. We encode the data directly in memory. It’s very efficient, but can lead to memory issues if the dataset is too large (eg: a Video)
See moreWarning: A Second approch to encode bigger dataset will be addes laterDeclaration
Swift
public struct MultipartFormData -
A path represents a path a request can query to
You can create paths using plain String, for instance:
See moreextension Path { static let user = "v1/users" } If you want to regroup a set of paths you can use your own "namespace" and add a forward declaration in `Path`. Adding a declaration provide autocompletion when using it in `Request`. ```swift enum MyPaths { static let user: Path = "v1/users" } extension Path { static let myPaths = MyPaths.self } let user: Path = .myPaths.userDeclaration
Swift
public struct Path : Equatable, ExpressibleByStringLiteral, ExpressibleByStringInterpolation -
A HTTP request safely typed for an
OutputresponseHighly inspired by https://swiftwithmajid.com/2021/02/10/building-type-safe-networking-in-swift/
See moreDeclaration
Swift
public struct Request<Output> -
Declaration
Swift
public struct URLDataResponse
Structures Reference