Commit Graph
1 Commits
Author SHA1 Message Date
mike_neck 5b60325b24 Provide an http client example. (#32)
* Add "/.idea" to the project's ignore file.

Motivation:

To develop with AppCode.

Modifications:

Add "/.idea" to the project's ignore file.

Result:

Add "/.idea" to the project's ignore file.

* Provide an HTTPS example. (#12)

Motivation:

To provide an example for people to use swift-nio-ssl at their projects with ease.

Modifications:

- Add NIOHTTP1Client module.

Result:

A good example for getting started with swift-nio-ssl.

* * Create OpenSSLHandler instance in channelInitializer function and chain adding handlers.

* Make sendRequest function to return EventLoopFuture and cascade promise with it to properly finish application.

* Accept command line argument.

* Make channel closed after receiving HTTPClientResponsePart.end. Because if large response is returned, channelReadComplete is called twice or more times.

* Add README.md for documenting command line argument.

* Add Connection header with handling for channelInactive

* Remove print and write bytes to stdout.

* fix compile error for NIO2.

* rename ctx to context

* dependency on NIOFoundationCompat was missing
2019-03-13 16:27:49 +00:00