mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-26 04:57:49 +00:00
Migrate CI to use GitHub Actions. (#234)
### Motivation: To migrate to GitHub actions and centralised infrastructure. ### Modifications: Changes of note: * Adopt swift-format using rules from SwiftNIO * Remove scripts and docker files which are no longer needed ### Result: Feature parity with old CI.
This commit is contained in:
1 parent
11b7d82b51
commit
3f776e9aaf
125 files changed
+4697
-3338
No files matched your search
@@ -32,8 +32,8 @@ private enum HTTP2TypeConversionError: Error {
|
||||
case pseudoFieldInTrailers
|
||||
}
|
||||
|
||||
private extension HPACKIndexing {
|
||||
init(_ newIndexingStrategy: HTTPField.DynamicTableIndexingStrategy) {
|
||||
extension HPACKIndexing {
|
||||
fileprivate init(_ newIndexingStrategy: HTTPField.DynamicTableIndexingStrategy) {
|
||||
switch newIndexingStrategy {
|
||||
case .avoid: self = .nonIndexable
|
||||
case .disallow: self = .neverIndexed
|
||||
@@ -42,8 +42,8 @@ private extension HPACKIndexing {
|
||||
}
|
||||
}
|
||||
|
||||
private extension HTTPField.DynamicTableIndexingStrategy {
|
||||
init(_ oldIndexing: HPACKIndexing) {
|
||||
extension HTTPField.DynamicTableIndexingStrategy {
|
||||
fileprivate init(_ oldIndexing: HPACKIndexing) {
|
||||
switch oldIndexing {
|
||||
case .indexable: self = .automatic
|
||||
case .nonIndexable: self = .avoid
|
||||
@@ -221,7 +221,8 @@ extension HTTPResponse {
|
||||
throw HTTP2TypeConversionError.missingStatus
|
||||
}
|
||||
guard let status = Int(statusString),
|
||||
(0 ... 999).contains(status) else {
|
||||
(0...999).contains(status)
|
||||
else {
|
||||
throw HTTP2TypeConversionError.invalidStatus
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user