Other Protocols
The following protocols are available globally.
-
A protocol providing a
baseURLof typeURL.Note:
See moreURLitself is implementing the protocol itself, returningselfas thebaseURL.Declaration
Swift
public protocol BaseURLProvider -
A protocol providing a
See moredecode<T: Decodable>(: T.Type, from: Data) -> Tinterface.Declaration
Swift
public protocol Decoder -
A protocol providing a
See moreencode<T: Encodable>(: T) -> Datainterface.Declaration
Swift
public protocol Encoder -
The protocol request executers need to conform to to be able to be used to send requests.
See moreDeclaration
Swift
public protocol RequestExecuter -
Base Protocol for
See moreInterceptor.Interceptorsare able to intercept a request and a response..Declaration
Swift
public protocol Interceptor -
A type that represents a session cache interceptor used for intercepting a cached response.
See moreDeclaration
Swift
public protocol SessionCacheInterceptor : Interceptor -
Protocol for requests that can be cancelled.
See moreDeclaration
Swift
public protocol CancellableRequest -
Logger to be used within the logging interceptors. To have your own logging mechanism simply conform to this protocol to be able to use your implementation within the interceptors.
See moreDeclaration
Swift
public protocol Logger
View on GitHub
Install in Dash
Other Protocols Reference