Skip to content

Remove redundant initializer from HTTPResponseCompressor in next major version #226

@dimitribouniol

Description

@dimitribouniol

As mentioned, public convenience init(initialByteBufferCapacity: Int) is now redundant, but has been left in purely for backwards compatibility when referring to the initializer directly rather than calling it, and can be removed in a future major version:

/// Initialize a ``HTTPResponseCompressor``.
/// - Parameter initialByteBufferCapacity: Initial size of buffer to allocate when hander is first added.
public convenience init(initialByteBufferCapacity: Int = 1024) {
// TODO: This version is kept around for backwards compatibility and should be merged with the signature below in the next major version: https://github.com/apple/swift-nio-extras/issues/226
self.init(initialByteBufferCapacity: initialByteBufferCapacity, responseCompressionPredicate: nil)
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions