NetworkEndpoint
public protocol NetworkEndpoint
This defines the basic information of an endpoint
-
Base information about the server common for all endpoints
Declaration
Swift
var server: ServerInfo { get } -
The path to be appended to
baseURLto form the fullURL.Declaration
Swift
var path: String { get } -
The HTTP method to be used in the request.
Declaration
Swift
var httpMethod: String { get } -
headersDefault implementationThe HTTP headers to be used in the request.
Default Implementation
Default value for HTTP headers is json
Declaration
Swift
var headers: Headers? { get } -
The parameters for the request
Declaration
Swift
var parameters: Params? { get } -
Type of encoding to use for params
Declaration
Swift
var encoding: NetworkEncoding { get }
-
endPointExtension methodUtility computed property to make the complete URL
Declaration
Swift
var endPoint: URL? { get }
View on GitHub
NetworkEndpoint Protocol Reference