HTTPHandlerRequestProtocol
public protocol HTTPHandlerRequestProtocol
HTTPHandlerRequestProtocol declares method required to send http request.
Important
This is a Public Preview API. It may be changed or removed at any time.-
Desired request endpoint as a
String
.Declaration
Swift
func endPoint() -> String
-
Request method as a
String
value.One of:
GET, POST, PUT, UPDATE, HEAD
Declaration
Swift
func method() -> String
-
parameters()
Default implementationRequest body will be injected based on the
Encodable
value returned by this function. If nil no body will attached.Default Implementation
Declaration
Swift
func parameters() -> Encodable?