Skip to content

Instantly share code, notes, and snippets.

@donut
Created April 21, 2016 17:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save donut/5f46d8f3b713fa8e4a551470eeeb027d to your computer and use it in GitHub Desktop.
Save donut/5f46d8f3b713fa8e4a551470eeeb027d to your computer and use it in GitHub Desktop.
HTTPSClient "Connection reset by peer" error demonstration.
DEVELOPMENT-SNAPSHOT-2016-04-12-a
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)
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