mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-26 04:57:50 +00:00
Motivation: In the future we'll want to use PRIORITY frames to provide feedback on how we emit data. Additionally, RFC 7540 forbids certain kinds of PRIORITY frame, which right now we tolerate receiving. We can design a minor PRIORITY shim to ensure that we have a code path for PRIORITY data to be passed around, and then use this shim to enforce RFC 7540's requirements. Modifications: - Added support for PRIORITY frame data inbound. - Enforce that frames may not establish self-dependency. Result: Better policing of RFC 7540 constraints.
47 lines
2.2 KiB
Swift
47 lines
2.2 KiB
Swift
//===----------------------------------------------------------------------===//
|
|
//
|
|
// This source file is part of the SwiftNIO open source project
|
|
//
|
|
// Copyright (c) 2017-2018 Apple Inc. and the SwiftNIO project authors
|
|
// Licensed under Apache License v2.0
|
|
//
|
|
// See LICENSE.txt for license information
|
|
// See CONTRIBUTORS.txt for the list of SwiftNIO project authors
|
|
//
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
//
|
|
// OutboundFlowControlBufferTests+XCTest.swift
|
|
//
|
|
import XCTest
|
|
|
|
///
|
|
/// NOTE: This file was generated by generate_linux_tests.rb
|
|
///
|
|
/// Do NOT edit this file directly as it will be regenerated automatically when needed.
|
|
///
|
|
|
|
extension OutboundFlowControlBufferTests {
|
|
|
|
static var allTests : [(String, (OutboundFlowControlBufferTests) -> () throws -> Void)] {
|
|
return [
|
|
("testJustLettingDataThrough", testJustLettingDataThrough),
|
|
("testSimpleFramesKeepBoundaries", testSimpleFramesKeepBoundaries),
|
|
("testOverlargeFramesAreSplitByteBuffer", testOverlargeFramesAreSplitByteBuffer),
|
|
("testOverlargeFramesAreSplitFileRegion", testOverlargeFramesAreSplitFileRegion),
|
|
("testIgnoresNonDataFramesForStream", testIgnoresNonDataFramesForStream),
|
|
("testProperlyDelaysENDSTREAMFlag", testProperlyDelaysENDSTREAMFlag),
|
|
("testInterlacingWithHeaders", testInterlacingWithHeaders),
|
|
("testBufferedDataAndHeadersAreCancelledOnStreamClosure", testBufferedDataAndHeadersAreCancelledOnStreamClosure),
|
|
("testWritesForUnknownStreamsFail", testWritesForUnknownStreamsFail),
|
|
("testOverlargeFramesAreSplitOnMaxFrameSizeByteBuffer", testOverlargeFramesAreSplitOnMaxFrameSizeByteBuffer),
|
|
("testOverlargeFramesAreSplitOnMaxFrameSizeFileRegion", testOverlargeFramesAreSplitOnMaxFrameSizeFileRegion),
|
|
("testChangingStreamWindowSizeToZeroAndBack", testChangingStreamWindowSizeToZeroAndBack),
|
|
("testStreamWindowChanges", testStreamWindowChanges),
|
|
("testRejectsPrioritySelfDependency", testRejectsPrioritySelfDependency),
|
|
]
|
|
}
|
|
}
|
|
|