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
pathRelative to network manager’s base URL request path.
methodHTTP method.
headersRequest headers.
urlModelURL model (if present).
bodyModelRequest body model.
responseTypeExpected response type.
TapNetworkRequestOperation Class Reference