You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,7 +32,7 @@ and ```SwiftNIOHTTP``` dependency to your target:
32
32
The code snippet below illustrates how to make a simple GET request to a remote server:
33
33
34
34
```swift
35
-
importHTTPClient
35
+
importNIOHTTPClient
36
36
37
37
let httpClient =HTTPClient(eventLoopGroupProvider: .createNew)
38
38
httpClient.get(url: "https://swift.org").whenComplete { result in
@@ -63,7 +63,7 @@ In this case shutdown of the client is not neccecary.
63
63
64
64
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:
65
65
```swift
66
-
importHTTPClient
66
+
importNIOHTTPClient
67
67
68
68
let httpClient =HTTPClient(eventLoopGroupProvider: .createNew)
0 commit comments