Other Protocols
The following protocols are available globally.
-
A protocol providing a
baseURL
of typeURL
.Note:
See moreURL
itself is implementing the protocol itself, returningself
as thebaseURL
.Declaration
Swift
public protocol BaseURLProvider
-
A protocol providing a
See moredecode<T: Decodable>(: T.Type, from: Data) -> T
interface.Declaration
Swift
public protocol Decoder
-
A protocol providing a
See moreencode<T: Encodable>(: T) -> Data
interface.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
.Interceptors
are 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