-
-
Save donut/5f46d8f3b713fa8e4a551470eeeb027d to your computer and use it in GitHub Desktop.
HTTPSClient "Connection reset by peer" error demonstration.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEVELOPMENT-SNAPSHOT-2016-04-12-a |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import HTTPSClient | |
let client = try HTTPSClient.Client(uri: "https://www.googleapis.com:443") | |
let response = try client.get( | |
"/youtube/v3/videos?part=snippet,statistics&id=1,2&key=REDACTED") | |
print("Yay!\n") | |
debugPrint(response) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PackageDescription | |
let package = Package( | |
name: "HTTPClient_issue", | |
dependencies: [ | |
.Package(url: "https://github.com/VeniceX/HTTPSClient.git", | |
majorVersion: 0, minor: 5), | |
] | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment