Skip to content

Commit 27fe926

Browse files
authored
rename to async-http-client (#58)
1 parent 022bb50 commit 27fe926

24 files changed

+105
-105
lines changed

CODE_OF_CONDUCT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
# Code of Conduct
2-
To be a truly great community, SwiftNIOHTTPClient needs to welcome developers from all walks of life,
2+
To be a truly great community, AsyncHTTPClient needs to welcome developers from all walks of life,
33
with different backgrounds, and with a wide range of experience. A diverse and friendly
44
community will have more great ideas, more unique perspectives, and produce more great
5-
code. We will work diligently to make the SwiftNIOHTTPClient community welcoming to everyone.
5+
code. We will work diligently to make the AsyncHTTPClient community welcoming to everyone.
66

7-
To give clarity of what is expected of our members, SwiftNIOHTTPClient has adopted the code of conduct
7+
To give clarity of what is expected of our members, AsyncHTTPClient has adopted the code of conduct
88
defined by [contributor-covenant.org](https://www.contributor-covenant.org). This document is used across many open source
99
communities, and we think it articulates our values well. The full text is copied below:
1010

CONTRIBUTORS.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
For the purpose of tracking copyright, this is the list of individuals and
2-
organizations who have contributed source code to the SwiftNIOHTTPClient.
2+
organizations who have contributed source code to the AsyncHTTPClient.
33

44
For employees of an organization/company where the copyright of work done
55
by employees of that company is held by the company itself, only the company

Package.swift

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
// swift-tools-version:5.0
22
//===----------------------------------------------------------------------===//
33
//
4-
// This source file is part of the SwiftNIOHTTPClient open source project
4+
// This source file is part of the AsyncHTTPClient open source project
55
//
6-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
6+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
77
// Licensed under Apache License v2.0
88
//
99
// See LICENSE.txt for license information
10-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
10+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1111
//
1212
// SPDX-License-Identifier: Apache-2.0
1313
//
@@ -16,22 +16,22 @@
1616
import PackageDescription
1717

1818
let package = Package(
19-
name: "swift-nio-http-client",
19+
name: "async-http-client",
2020
products: [
21-
.library(name: "NIOHTTPClient", targets: ["NIOHTTPClient"]),
21+
.library(name: "AsyncHTTPClient", targets: ["AsyncHTTPClient"]),
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: "NIOHTTPClient",
29+
name: "AsyncHTTPClient",
3030
dependencies: ["NIO", "NIOHTTP1", "NIOSSL", "NIOConcurrencyHelpers"]
3131
),
3232
.testTarget(
33-
name: "NIOHTTPClientTests",
34-
dependencies: ["NIOHTTPClient", "NIOFoundationCompat"]
33+
name: "AsyncHTTPClientTests",
34+
dependencies: ["AsyncHTTPClient", "NIOFoundationCompat"]
3535
),
3636
]
3737
)

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# SwiftNIOHTTPClient
1+
# AsyncHTTPClient
22
This package provides simple HTTP Client library built on top of SwiftNIO.
33

44
This library provides the following:
@@ -10,7 +10,7 @@ This library provides the following:
1010

1111
---
1212

13-
**NOTE**: You will need [Xcode 10.2](https://itunes.apple.com/us/app/xcode/id497799835) or [Swift 5.0](https://swift.org/download/#swift-50) to try out `SwiftNIOHTTPClient`.
13+
**NOTE**: You will need [Xcode 10.2](https://itunes.apple.com/us/app/xcode/id497799835) or [Swift 5.0](https://swift.org/download/#swift-50) to try out `AsyncHTTPClient`.
1414

1515
---
1616

@@ -21,18 +21,18 @@ Add the following entry in your <code>Package.swift</code> to start using <code>
2121

2222
```swift
2323
// it's early days here so we haven't tagged a version yet, but will soon
24-
.package(url: "https://github.com/swift-server/swift-nio-http-client.git", .branch("master"))
24+
.package(url: "https://github.com/swift-server/async-http-client.git", .branch("master"))
2525
```
26-
and `NIOHTTPClient` dependency to your target:
26+
and `AsyncHTTPClient` dependency to your target:
2727
```swift
28-
.target(name: "MyApp", dependencies: ["NIOHTTPClient"]),
28+
.target(name: "MyApp", dependencies: ["AsyncHTTPClient"]),
2929
```
3030

3131
#### Request-Response API
3232
The code snippet below illustrates how to make a simple GET request to a remote server:
3333

3434
```swift
35-
import NIOHTTPClient
35+
import AsyncHTTPClient
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 the `HTTPRequest` struct:
6565
```swift
66-
import NIOHTTPClient
66+
import AsyncHTTPClient
6767

6868
let httpClient = HTTPClient(eventLoopGroupProvider: .createNew)
6969
defer {

Sources/NIOHTTPClient/HTTPClient+HTTPCookie.swift renamed to Sources/AsyncHTTPClient/HTTPClient+HTTPCookie.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/NIOHTTPClient/SwiftNIOHTTP.swift renamed to Sources/AsyncHTTPClient/HTTPClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/NIOHTTPClient/HTTPClientProxyHandler.swift renamed to Sources/AsyncHTTPClient/HTTPClientProxyHandler.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/NIOHTTPClient/HTTPHandler.swift renamed to Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/NIOHTTPClient/RequestValidation.swift renamed to Sources/AsyncHTTPClient/RequestValidation.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

Sources/NIOHTTPClient/Utils.swift renamed to Sources/AsyncHTTPClient/Utils.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
//===----------------------------------------------------------------------===//
22
//
3-
// This source file is part of the SwiftNIOHTTPClient open source project
3+
// This source file is part of the AsyncHTTPClient open source project
44
//
5-
// Copyright (c) 2018-2019 Swift Server Working Group and the SwiftNIOHTTPClient project authors
5+
// Copyright (c) 2018-2019 Swift Server Working Group and the AsyncHTTPClient project authors
66
// Licensed under Apache License v2.0
77
//
88
// See LICENSE.txt for license information
9-
// See CONTRIBUTORS.txt for the list of SwiftNIOHTTPClient project authors
9+
// See CONTRIBUTORS.txt for the list of AsyncHTTPClient project authors
1010
//
1111
// SPDX-License-Identifier: Apache-2.0
1212
//

0 commit comments

Comments
 (0)