@@ -62,7 +62,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
62
62
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
63
63
64
64
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
65
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
65
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
66
66
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
67
67
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
68
68
@@ -90,7 +90,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
90
90
var state = HTTP1ConnectionStateMachine ( )
91
91
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
92
92
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " , headers: [ " connection " : " close " ] )
93
- let metadata = RequestFramingMetadata ( connectionClose: true , body: . none )
93
+ let metadata = RequestFramingMetadata ( connectionClose: true , body: . fixedSize ( 0 ) )
94
94
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
95
95
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
96
96
@@ -106,7 +106,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
106
106
var state = HTTP1ConnectionStateMachine ( )
107
107
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
108
108
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
109
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
109
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
110
110
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
111
111
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
112
112
@@ -122,7 +122,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
122
122
var state = HTTP1ConnectionStateMachine ( )
123
123
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
124
124
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
125
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
125
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
126
126
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
127
127
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
128
128
@@ -139,7 +139,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
139
139
XCTAssertEqual ( state. channelActive ( isWritable: false ) , . fireChannelActive)
140
140
XCTAssertEqual ( state. writabilityChanged ( writable: true ) , . wait)
141
141
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
142
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
142
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
143
143
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
144
144
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
145
145
@@ -168,7 +168,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
168
168
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
169
169
170
170
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
171
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
171
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
172
172
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
173
173
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
174
174
@@ -233,7 +233,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
233
233
var state = HTTP1ConnectionStateMachine ( )
234
234
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
235
235
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
236
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
236
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
237
237
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
238
238
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
239
239
let responseHead = HTTPResponseHead ( version: . http1_1, status: . ok)
@@ -248,7 +248,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
248
248
var state = HTTP1ConnectionStateMachine ( )
249
249
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
250
250
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
251
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
251
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
252
252
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
253
253
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
254
254
let responseHead = HTTPResponseHead ( version: . http1_1, status: . switchingProtocols)
@@ -260,7 +260,7 @@ class HTTP1ConnectionStateMachineTests: XCTestCase {
260
260
var state = HTTP1ConnectionStateMachine ( )
261
261
XCTAssertEqual ( state. channelActive ( isWritable: true ) , . fireChannelActive)
262
262
let requestHead = HTTPRequestHead ( version: . http1_1, method: . GET, uri: " / " )
263
- let metadata = RequestFramingMetadata ( connectionClose: false , body: . none )
263
+ let metadata = RequestFramingMetadata ( connectionClose: false , body: . fixedSize ( 0 ) )
264
264
let newRequestAction = state. runNewRequest ( head: requestHead, metadata: metadata)
265
265
XCTAssertEqual ( newRequestAction, . sendRequestHead( requestHead, startBody: false ) )
266
266
let responseHead = HTTPResponseHead ( version: . http1_1, status: . init( statusCode: 103 , reasonPhrase: " Early Hints " ) )
0 commit comments