Skip to content

Commit f6a9e50

Browse files
committed
fix imports in README
1 parent 58ea0c5 commit f6a9e50

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
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 {

0 commit comments

Comments
 (0)