sig/parser/http1.rbs in httpx-0.18.7 vs sig/parser/http1.rbs in httpx-0.19.0
- old
+ new
@@ -1,7 +1,10 @@
module HTTPX
module Parser
+ class Error < HTTPX::Error
+ end
+
type parsed_headers = Hash[String, Array[String]]
interface _HTTP1Events
def on_start: () -> void
@@ -12,18 +15,24 @@
end
class HTTP1
VERSIONS: Array[String]
- def <<: (String chunk) -> void
+ attr_reader status_code: Integer
+ attr_reader http_version: [Integer, Integer]
+ attr_reader headers: parsed_headers
- def headers: () -> parsed_headers
+ @observer: _HTTP1Events
+ @state: Symbol
+ @buffer: String
+ @content_type: String?
+ @content_length: Integer
+ @_has_trailers: bool
+ @upgrade: bool
- def http_version: () -> Array[1 | 0]
+ def <<: (String chunk) -> void
def reset!: () -> void
-
- def status_code: () -> Integer
def upgrade?: () -> bool
def upgrade_data: () -> String
\ No newline at end of file