Protocols
The following protocols are available globally.
-
When present, Restivus will populate the body of the HTTPURLRequest with the data found in the
See moredata
property of the Restable request. If a Restable conforms to bothPreEncoded
andEncodable
, Restivus will ignore theEncodable
Declaration
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