@@ -59,13 +59,13 @@ enum nghttp2_stream_flags {
59
59
// Writable side has ended
60
60
NGHTTP2_STREAM_FLAG_SHUT = 0x1 ,
61
61
// Reading has started
62
- NGHTTP2_STREAM_READ_START = 0x2 ,
62
+ NGHTTP2_STREAM_FLAG_READ_START = 0x2 ,
63
63
// Reading is paused
64
- NGHTTP2_STREAM_READ_PAUSED = 0x4 ,
64
+ NGHTTP2_STREAM_FLAG_READ_PAUSED = 0x4 ,
65
65
// Stream is closed
66
- NGHTTP2_STREAM_CLOSED = 0x8 ,
66
+ NGHTTP2_STREAM_FLAG_CLOSED = 0x8 ,
67
67
// Stream is destroyed
68
- NGHTTP2_STREAM_DESTROYED = 0x10
68
+ NGHTTP2_STREAM_FLAG_DESTROYED = 0x10
69
69
};
70
70
71
71
@@ -301,7 +301,7 @@ class Nghttp2Stream {
301
301
302
302
// Returns true if this stream has been destroyed
303
303
inline bool IsDestroyed () const {
304
- return flags_ & NGHTTP2_STREAM_DESTROYED ;
304
+ return flags_ & NGHTTP2_STREAM_FLAG_DESTROYED ;
305
305
}
306
306
307
307
// Queue outbound chunks of data to be sent on this stream
@@ -361,24 +361,24 @@ class Nghttp2Stream {
361
361
362
362
// Returns true if reading is paused
363
363
inline bool IsPaused () const {
364
- return flags_ & NGHTTP2_STREAM_READ_PAUSED ;
364
+ return flags_ & NGHTTP2_STREAM_FLAG_READ_PAUSED ;
365
365
}
366
366
367
367
inline bool GetTrailers () const {
368
368
return getTrailers_;
369
369
}
370
370
371
371
// Returns true if this stream is in the reading state, which occurs when
372
- // the NGHTTP2_STREAM_READ_START flag has been set and the
373
- // NGHTTP2_STREAM_READ_PAUSED flag is *not* set.
372
+ // the NGHTTP2_STREAM_FLAG_READ_START flag has been set and the
373
+ // NGHTTP2_STREAM_FLAG_READ_PAUSED flag is *not* set.
374
374
inline bool IsReading () const {
375
- return flags_ & NGHTTP2_STREAM_READ_START &&
376
- !(flags_ & NGHTTP2_STREAM_READ_PAUSED );
375
+ return flags_ & NGHTTP2_STREAM_FLAG_READ_START &&
376
+ !(flags_ & NGHTTP2_STREAM_FLAG_READ_PAUSED );
377
377
}
378
378
379
379
inline void Close (int32_t code) {
380
380
DEBUG_HTTP2 (" Nghttp2Stream %d: closing with code %d\n " , id_, code);
381
- flags_ |= NGHTTP2_STREAM_CLOSED ;
381
+ flags_ |= NGHTTP2_STREAM_FLAG_CLOSED ;
382
382
code_ = code;
383
383
session_->OnStreamClose (id_, code);
384
384
DEBUG_HTTP2 (" Nghttp2Stream %d: closed\n " , id_);
@@ -387,7 +387,7 @@ class Nghttp2Stream {
387
387
// Returns true if this stream has been closed either by receiving or
388
388
// sending an RST_STREAM frame.
389
389
inline bool IsClosed () const {
390
- return flags_ & NGHTTP2_STREAM_CLOSED ;
390
+ return flags_ & NGHTTP2_STREAM_FLAG_CLOSED ;
391
391
}
392
392
393
393
// Returns the RST_STREAM code used to close this stream
0 commit comments