Skip to content

Commit 7cfc052

Browse files
authored
Merge pull request #4 from swift-server/rename_package_to_niohttpclient
Rename package to NIOHTTPClient
2 parents 43d1b72 + 9db5fd3 commit 7cfc052

11 files changed

+11
-11
lines changed

Package.swift

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,20 +16,20 @@
1616
import PackageDescription
1717

1818
let package = Package(
19-
name: "SwiftNIOHTTP",
19+
name: "swift-nio-http-client",
2020
products: [
21-
.library(name: "SwiftNIOHTTP", targets: ["SwiftNIOHTTP"]),
21+
.library(name: "NIOHTTPClient", targets: ["NIOHTTPClient"]),
2222
],
2323
dependencies: [
2424
.package(url: "https://github.com/apple/swift-nio.git", from: "2.0.0"),
2525
.package(url: "https://github.com/apple/swift-nio-ssl.git", from: "2.0.0"),
2626
],
2727
targets: [
2828
.target(
29-
name: "SwiftNIOHTTP",
29+
name: "NIOHTTPClient",
3030
dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOConcurrencyHelpers"]),
3131
.testTarget(
32-
name: "SwiftNIOHTTPTests",
33-
dependencies: ["SwiftNIOHTTP"]),
32+
name: "NIOHTTPClientTests",
33+
dependencies: ["NIOHTTPClient"]),
3434
]
3535
)

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Add the following entry in your <code>Package.swift</code> to start using <code>
2323
// it's early days here so we haven't tagged a version yet, but will soon
2424
.package(url: "https://github.com/swift-server/swift-nio-http-client.git", .branch("master"))
2525
```
26-
and ```SwiftNIOHTTP``` dependency to your target:
26+
and ```NIOHTTPClient``` dependency to your target:
2727
```swift
2828
.target(name: "MyApp", dependencies: ["NIOHTTPClient"]),
2929
```
@@ -32,7 +32,7 @@ and ```SwiftNIOHTTP``` dependency to your target:
3232
The code snippet below illustrates how to make a simple GET request to a remote server:
3333

3434
```swift
35-
import HTTPClient
35+
import NIOHTTPClient
3636

3737
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
3838
httpClient.get(url: "https://swift.org").whenComplete { result in
@@ -63,7 +63,7 @@ In this case shutdown of the client is not neccecary.
6363

6464
Most common HTTP methods are supported out of the box. In case you need to have more control over the method, or you want to add headers or body, use ```HTTPRequest``` struct:
6565
```swift
66-
import HTTPClient
66+
import NIOHTTPClient
6767

6868
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
6969
defer {
File renamed without changes.

Tests/SwiftNIOHTTPTests/HTTPClientTestUtils.swift renamed to Tests/NIOHTTPClientTests/HTTPClientTestUtils.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import Foundation
1616
import NIO
1717
import NIOHTTP1
1818
import NIOSSL
19-
@testable import SwiftNIOHTTP
19+
@testable import NIOHTTPClient
2020

2121
class TestHTTPDelegate : HTTPResponseDelegate {
2222
typealias Response = Void

Tests/SwiftNIOHTTPTests/HTTPCookieTests.swift renamed to Tests/NIOHTTPClientTests/HTTPCookieTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
import Foundation
1616
import XCTest
17-
@testable import SwiftNIOHTTP
17+
@testable import NIOHTTPClient
1818

1919
class HTTPCookieTests: XCTestCase {
2020

Tests/SwiftNIOHTTPTests/SwiftNIOHTTPTests.swift renamed to Tests/NIOHTTPClientTests/SwiftNIOHTTPTests.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import NIO
1717
import NIOSSL
1818
import XCTest
1919
@testable import NIOHTTP1
20-
@testable import SwiftNIOHTTP
20+
@testable import NIOHTTPClient
2121

2222
class SwiftHTTPTests: XCTestCase {
2323

0 commit comments

Comments
 (0)