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
Stringvalue.One of:
GET, POST, PUT, UPDATE, HEADDeclaration
Swift
func method() -> String -
parameters()Default implementationRequest body will be injected based on the
Encodablevalue returned by this function. If nil no body will attached.Default Implementation
Declaration
Swift
func parameters() -> Encodable?
HTTPHandlerRequestProtocol Protocol Reference