Skip to content
Permalink
Branch: master
Commits on May 15, 2019
  1. Add an `always` method on EventLoopFuture (#981)

    Palleas authored and weissi committed May 15, 2019
    Add an `always` method on EventLoopFuture
    
    Motivation:
    
    #665
    
    Modifications:
    
    * Add `always` in EventLoopFuture.swift
    * Add tests
    
    Result:
    
    NIO Users will be able to use `.always` to, well, always run an action
    wether the future succeed or not.
Commits on Apr 30, 2019
  1. Add a way to get a handler from a pipeline (#974)

    Palleas authored and weissi committed Apr 30, 2019
    Motivation:
    
    #966
    
    Modifications:
    
    - Add a `handler(type:)` method on ChannelPipeline
    - Add a test in ChannelPipelineTest
    
    Result:
    
    Provides a nicer way to get a typed handler directly from the pipeline
    
    Closes #966
  2. Add a way to convert HTTP methods from/to String (#976)

    Palleas authored and Lukasa committed Apr 30, 2019
    Motivation:
    
    #701
    
    Modifications:
    
    * Add `init(rawValue:)`
    * Add `rawValue`
    * Add tests in HTTPTypesTest.swift
    
    Result:
    
    Users no longer have to write their own conversion methods.
  3. Add a Channel Handler that closes the channel (#967)

    Palleas authored and weissi committed Apr 30, 2019
    Motivation:
    Because of #600, many users will start leaking Channels because they
    don't close on error.
    
    Modifications:
    
    * Add ChannelHandlerError
    * Add ChannelHandlerErrorTest
    
    Result:
    
    User will have access to an handler to use to automatically close
    the channel in case of unhandled errors
You can’t perform that action at this time.