mirror of
https://github.com/apple/swift-nio-ssl
synced 2026-11-25 04:47:52 +00:00
Motivation: With package editing this problem surfaces: ``` $ jw-swift-5.0 swift test error: multiple products named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl error: multiple targets named 'NIOHTTP1Client' in: swift-nio, swift-nio-ssl ``` which is bad. Fortunately, these are executable targets that we can rename. Modification: rename `NIOHTTP1Client` in swift-nio-ssl to `NIOSSLHTTP1Client` Result: usable with package editing.
454 B
454 B
NIOHTTP1Client
This sample application provides a http client. Invoke it using one of the following syntaxes.
swift run NIOHTTP1Client # Gets a content on a server on ::1, port 4433, using SSL/TLS
swift run NIOHTTP1Client "https://example.com" # Gets a content on a server on example.com, port 443, using SSL/TLS
swift run NIOHTTP1Client "https://example.com:4433" # Gets a content on a server on example.com, port 4433, using SSL/TLS