Protocols
The following protocols are available globally.
-
When present, Restivus will populate the body of the HTTPURLRequest with the data found in the
See moredataproperty of the Restable request. If a Restable conforms to bothPreEncodedandEncodable, Restivus will ignore theEncodableDeclaration
Swift
public protocol PreEncoded -
The base protocol for method-specific protocols.
See moreDeclaration
Swift
public protocol Restable
-
Provides pre-submission hook which allows a Restable to mutate the HTTPURLRequest. For example, adding a token in a header.
See moreDeclaration
Swift
public protocol Interceptable
View on GitHub
Protocols Reference