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) |
|
} |
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:swift-nio-extras/Sources/NIOHTTPCompression/HTTPResponseCompressor.swift
Lines 132 to 137 in d1ead62