-
Notifications
You must be signed in to change notification settings - Fork 638
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publicizes variadic / array
ChannelPipeline.addHandler
methods and …
…moves them from NIOHTTP1 to NIO. (#79) (#79) Motivation: The `addHandler` method is useful for creating extensions to add handlers similar to what Swift NIO offers w/ HTTP. For example: ```swift extension ChannelPipeline { func addPostgreSQLClientHandlers(first: Bool = false) -> EventLoopFuture<Void> { return addHandlers(PostgreSQLMessageEncoder(), PostgreSQLMessageDecoder(), first: first) } } ``` Result: Array and variadic accepting `ChannelPipeline.addHandler` methods are now available when importing the NIO module.
- Loading branch information
1 parent
da65c4f
commit 5ff6d9b
Showing
2 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
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
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
5ff6d9b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice one... @tanner0101 thanks!