http-2 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/sig/stream.rbs CHANGED
@@ -3,6 +3,8 @@ module HTTP2
3
3
  include FlowBuffer
4
4
  include Emitter
5
5
 
6
+ STREAM_OPEN_STATES: Array[Symbol]
7
+
6
8
  attr_reader id: Integer
7
9
  attr_reader state: Symbol
8
10
  attr_reader parent: Stream?
@@ -19,6 +21,7 @@ module HTTP2
19
21
  @_content_length: Integer?
20
22
  @_status_code: Integer?
21
23
  @_waiting_on_trailers: bool
24
+ @_trailers: Array[String]?
22
25
  @received_data: bool
23
26
  @activated: bool
24
27
 
@@ -26,15 +29,15 @@ module HTTP2
26
29
 
27
30
  def closed?: () -> bool
28
31
 
29
- def receive: (frame) -> void
32
+ def receive: (frame frame) -> void
30
33
 
31
34
  alias << receive
32
35
 
33
- def verify_trailers: (frame) -> void
36
+ def verify_trailers: (headers_frame frame) -> void
34
37
 
35
38
  def calculate_content_length: (Integer?) -> void
36
39
 
37
- def send: (frame) -> void
40
+ def send: (frame frame) -> void
38
41
 
39
42
  def headers: (Enumerable[header_pair] headers, ?end_headers: bool, ?end_stream: bool) -> void
40
43
 
@@ -77,9 +80,9 @@ module HTTP2
77
80
 
78
81
  def complete_transition: (frame) -> void
79
82
 
80
- def process_priority: ({weight: Integer, dependency: Integer, exclusive: bool}) -> void
83
+ def process_priority: (priority_frame frame) -> void
81
84
 
82
- def end_frame?: () -> bool
85
+ def end_stream?: (frame frame) -> boolish
83
86
 
84
87
  def stream_error: (Symbol error, ?msg: String?) -> void
85
88
  | () -> void
metadata CHANGED
@@ -1,16 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http-2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tiago Cardoso
8
8
  - Ilya Grigorik
9
9
  - Kaoru Maeda
10
- autorequire:
11
10
  bindir: bin
12
11
  cert_chain: []
13
- date: 2024-11-05 00:00:00.000000000 Z
12
+ date: 2025-04-16 00:00:00.000000000 Z
14
13
  dependencies: []
15
14
  description: Pure-ruby HTTP 2.0 protocol implementation
16
15
  email:
@@ -39,6 +38,7 @@ files:
39
38
  - lib/http/2/server.rb
40
39
  - lib/http/2/stream.rb
41
40
  - lib/http/2/version.rb
41
+ - sig/2.rbs
42
42
  - sig/client.rbs
43
43
  - sig/connection.rbs
44
44
  - sig/emitter.rbs
@@ -52,7 +52,6 @@ files:
52
52
  - sig/header/decompressor.rbs
53
53
  - sig/header/encoding_context.rbs
54
54
  - sig/header/huffman.rbs
55
- - sig/next.rbs
56
55
  - sig/server.rbs
57
56
  - sig/stream.rbs
58
57
  homepage: https://github.com/igrigorik/http-2
@@ -64,7 +63,6 @@ metadata:
64
63
  source_code_uri: https://github.com/igrigorik/http-2
65
64
  homepage_uri: https://github.com/igrigorik/http-2
66
65
  rubygems_mfa_required: 'true'
67
- post_install_message:
68
66
  rdoc_options: []
69
67
  require_paths:
70
68
  - lib
@@ -79,8 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
79
77
  - !ruby/object:Gem::Version
80
78
  version: '0'
81
79
  requirements: []
82
- rubygems_version: 3.5.3
83
- signing_key:
80
+ rubygems_version: 3.6.2
84
81
  specification_version: 4
85
82
  summary: Pure-ruby HTTP 2.0 protocol implementation
86
83
  test_files: []