Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions Package.resolved

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@ let package = Package(
targets: ["HTTPEngine"]),
],
dependencies: [
.package(url: "https://github.com/JZDesign/SwiftUtilities.git", .upToNextMajor(from: "0.1.0")),
.package(url: "https://github.com/AliSoftware/OHHTTPStubs.git", .upToNextMajor(from: "9.0.0"))
],
targets: [
// Targets are the basic building blocks of a package. A target can define a module or a test suite.
// Targets can depend on other targets in this package, and on products in packages which this package depends on.
.target(
name: "HTTPEngine",
dependencies: []),
dependencies: ["SwiftUtilities"]),
.testTarget(
name: "HTTPEngineTests",
dependencies: [
Expand Down
1 change: 1 addition & 0 deletions Sources/HTTPEngine/HTTPEngine+ConvenienceMethods.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// swiftlint:disable line_length
import SwiftUtilities
import Foundation
import Combine

Expand Down
10 changes: 10 additions & 0 deletions Sources/HTTPEngine/HTTPEngine.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// swiftlint:disable line_length
import SwiftUtilities
import Foundation
import Combine

Expand Down Expand Up @@ -120,3 +121,12 @@ public struct HTTPEngine {
}

}

public extension URLRequest {

/// Combine convenience method
/// - Returns: URLSession.DataTaskPublisher
func dataTaskPublisher() -> URLSession.DataTaskPublisher {
return URLSession.shared.dataTaskPublisher(for: self)
}
}
55 changes: 0 additions & 55 deletions Sources/HTTPEngine/Utilities.swift

This file was deleted.

42 changes: 0 additions & 42 deletions Tests/HTTPEngineTests/UtilityTests.swift

This file was deleted.