TapNetworkRequestOperation
public class TapNetworkRequestOperation
Network request operation class.
-
HTTP method.
Declaration
Swift
public var httpMethod: TapHTTPMethod
-
Request path.
Declaration
Swift
public var path: String
-
Additional request headers.
Declaration
Swift
public var additionalHeaders: [String: String]
-
URL model.
Declaration
Swift
public var urlModel: TapURLModel?
-
Body model
Declaration
Swift
public var bodyModel: TapBodyModel?
-
Expected response type.
Declaration
Swift
public var responseType: TapSerializationType
-
Initialiazier.
Declaration
Swift
public init(path: String, method: TapHTTPMethod = .GET, headers: [String: String]? = nil, urlModel: TapURLModel? = nil, bodyModel: TapBodyModel? = nil, responseType: TapSerializationType = .json)
Parameters
path
Relative to network manager’s base URL request path.
method
HTTP method.
headers
Request headers.
urlModel
URL model (if present).
bodyModel
Request body model.
responseType
Expected response type.