tsumanne 0.0.0
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.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +32 -0
- data/.ruby-version +1 -0
- data/LICENSE.txt +21 -0
- data/README.md +31 -0
- data/Rakefile +45 -0
- data/lib/tsumanne/version.rb +7 -0
- data/lib/tsumanne.rb +128 -0
- data/sorbet/config +4 -0
- data/sorbet/rbi/annotations/rainbow.rbi +269 -0
- data/sorbet/rbi/gems/ast@2.4.2.rbi +584 -0
- data/sorbet/rbi/gems/base64@0.1.1.rbi +172 -0
- data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +1083 -0
- data/sorbet/rbi/gems/erubi@1.12.0.rbi +145 -0
- data/sorbet/rbi/gems/ffi-compiler@1.0.1.rbi +206 -0
- data/sorbet/rbi/gems/ffi@1.15.5.rbi +1994 -0
- data/sorbet/rbi/gems/http-parser@1.2.3.rbi +422 -0
- data/sorbet/rbi/gems/json@2.6.3.rbi +1533 -0
- data/sorbet/rbi/gems/language_server-protocol@3.17.0.3.rbi +14237 -0
- data/sorbet/rbi/gems/mhtml@0.1.6.rbi +353 -0
- data/sorbet/rbi/gems/netrc@0.11.0.rbi +158 -0
- data/sorbet/rbi/gems/parallel@1.23.0.rbi +273 -0
- data/sorbet/rbi/gems/parser@3.2.2.3.rbi +7253 -0
- data/sorbet/rbi/gems/prettier_print@1.2.1.rbi +951 -0
- data/sorbet/rbi/gems/racc@1.7.1.rbi +161 -0
- data/sorbet/rbi/gems/rainbow@3.1.1.rbi +402 -0
- data/sorbet/rbi/gems/rake@13.0.6.rbi +3024 -0
- data/sorbet/rbi/gems/rbi@0.0.17.rbi +2967 -0
- data/sorbet/rbi/gems/regexp_parser@2.8.1.rbi +3749 -0
- data/sorbet/rbi/gems/rexml@3.2.6.rbi +4781 -0
- data/sorbet/rbi/gems/rspec-core@3.12.2.rbi +10805 -0
- data/sorbet/rbi/gems/rspec-expectations@3.12.3.rbi +8100 -0
- data/sorbet/rbi/gems/rspec-mocks@3.12.6.rbi +5310 -0
- data/sorbet/rbi/gems/rspec-support@3.12.1.rbi +1609 -0
- data/sorbet/rbi/gems/rspec@3.12.0.rbi +82 -0
- data/sorbet/rbi/gems/rubocop-ast@1.29.0.rbi +7144 -0
- data/sorbet/rbi/gems/rubocop-capybara@2.18.0.rbi +827 -0
- data/sorbet/rbi/gems/rubocop-factory_bot@2.23.1.rbi +812 -0
- data/sorbet/rbi/gems/rubocop-performance@1.19.0.rbi +3157 -0
- data/sorbet/rbi/gems/rubocop-rake@0.6.0.rbi +328 -0
- data/sorbet/rbi/gems/rubocop-rspec@2.23.2.rbi +7691 -0
- data/sorbet/rbi/gems/rubocop-sorbet@0.7.3.rbi +1226 -0
- data/sorbet/rbi/gems/rubocop@1.56.2.rbi +56541 -0
- data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +1317 -0
- data/sorbet/rbi/gems/spoom@1.2.3.rbi +3199 -0
- data/sorbet/rbi/gems/syntax_tree@6.1.1.rbi +22855 -0
- data/sorbet/rbi/gems/tapioca@0.11.8.rbi +3329 -0
- data/sorbet/rbi/gems/thor@1.2.2.rbi +3965 -0
- data/sorbet/rbi/gems/unicode-display_width@2.4.2.rbi +65 -0
- data/sorbet/rbi/gems/unparser@0.6.8.rbi +4525 -0
- data/sorbet/rbi/gems/yard-sorbet@0.8.1.rbi +425 -0
- data/sorbet/rbi/gems/yard@0.9.34.rbi +18219 -0
- data/sorbet/tapioca/config.yml +13 -0
- data/sorbet/tapioca/require.rb +4 -0
- metadata +254 -0
@@ -0,0 +1,422 @@
|
|
1
|
+
# typed: true
|
2
|
+
|
3
|
+
# DO NOT EDIT MANUALLY
|
4
|
+
# This is an autogenerated file for types exported from the `http-parser` gem.
|
5
|
+
# Please instead update this file by running `bin/tapioca gem http-parser`.
|
6
|
+
|
7
|
+
class FFI::Function < ::FFI::Pointer
|
8
|
+
def initialize(*_arg0); end
|
9
|
+
|
10
|
+
def attach(_arg0, _arg1); end
|
11
|
+
def autorelease; end
|
12
|
+
def autorelease=(_arg0); end
|
13
|
+
def autorelease?; end
|
14
|
+
def call(*_arg0); end
|
15
|
+
def free; end
|
16
|
+
|
17
|
+
private
|
18
|
+
|
19
|
+
def initialize_copy(_arg0); end
|
20
|
+
end
|
21
|
+
|
22
|
+
# source://http-parser//lib/http-parser/ext.rb#6
|
23
|
+
module HttpParser
|
24
|
+
extend ::FFI::Library
|
25
|
+
|
26
|
+
def err_desc(*_arg0); end
|
27
|
+
def err_name(*_arg0); end
|
28
|
+
def http_body_is_final(*_arg0); end
|
29
|
+
def http_parser_execute(*_arg0); end
|
30
|
+
def http_parser_init(*_arg0); end
|
31
|
+
def http_should_keep_alive(*_arg0); end
|
32
|
+
|
33
|
+
class << self
|
34
|
+
def err_desc(*_arg0); end
|
35
|
+
def err_name(*_arg0); end
|
36
|
+
def http_body_is_final(*_arg0); end
|
37
|
+
def http_parser_execute(*_arg0); end
|
38
|
+
def http_parser_init(*_arg0); end
|
39
|
+
def http_should_keep_alive(*_arg0); end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
43
|
+
# source://http-parser//lib/http-parser/errors.rb#36
|
44
|
+
HttpParser::ERRORS = T.let(T.unsafe(nil), Hash)
|
45
|
+
|
46
|
+
# source://http-parser//lib/http-parser/errors.rb#4
|
47
|
+
class HttpParser::Error < ::StandardError; end
|
48
|
+
|
49
|
+
# Any callback-related errors
|
50
|
+
#
|
51
|
+
# source://http-parser//lib/http-parser/errors.rb#8
|
52
|
+
class HttpParser::Error::CALLBACK < ::HttpParser::Error; end
|
53
|
+
|
54
|
+
# source://http-parser//lib/http-parser/errors.rb#13
|
55
|
+
class HttpParser::Error::CLOSED_CONNECTION < ::HttpParser::Error; end
|
56
|
+
|
57
|
+
# source://http-parser//lib/http-parser/errors.rb#12
|
58
|
+
class HttpParser::Error::HEADER_OVERFLOW < ::HttpParser::Error; end
|
59
|
+
|
60
|
+
# source://http-parser//lib/http-parser/errors.rb#27
|
61
|
+
class HttpParser::Error::INVALID_CHUNK_SIZE < ::HttpParser::Error; end
|
62
|
+
|
63
|
+
# source://http-parser//lib/http-parser/errors.rb#28
|
64
|
+
class HttpParser::Error::INVALID_CONSTANT < ::HttpParser::Error; end
|
65
|
+
|
66
|
+
# source://http-parser//lib/http-parser/errors.rb#26
|
67
|
+
class HttpParser::Error::INVALID_CONTENT_LENGTH < ::HttpParser::Error; end
|
68
|
+
|
69
|
+
# Parsing-related errors
|
70
|
+
#
|
71
|
+
# source://http-parser//lib/http-parser/errors.rb#11
|
72
|
+
class HttpParser::Error::INVALID_EOF_STATE < ::HttpParser::Error; end
|
73
|
+
|
74
|
+
# source://http-parser//lib/http-parser/errors.rb#23
|
75
|
+
class HttpParser::Error::INVALID_FRAGMENT < ::HttpParser::Error; end
|
76
|
+
|
77
|
+
# source://http-parser//lib/http-parser/errors.rb#25
|
78
|
+
class HttpParser::Error::INVALID_HEADER_TOKEN < ::HttpParser::Error; end
|
79
|
+
|
80
|
+
# source://http-parser//lib/http-parser/errors.rb#19
|
81
|
+
class HttpParser::Error::INVALID_HOST < ::HttpParser::Error; end
|
82
|
+
|
83
|
+
# source://http-parser//lib/http-parser/errors.rb#29
|
84
|
+
class HttpParser::Error::INVALID_INTERNAL_STATE < ::HttpParser::Error; end
|
85
|
+
|
86
|
+
# source://http-parser//lib/http-parser/errors.rb#17
|
87
|
+
class HttpParser::Error::INVALID_METHOD < ::HttpParser::Error; end
|
88
|
+
|
89
|
+
# source://http-parser//lib/http-parser/errors.rb#21
|
90
|
+
class HttpParser::Error::INVALID_PATH < ::HttpParser::Error; end
|
91
|
+
|
92
|
+
# source://http-parser//lib/http-parser/errors.rb#20
|
93
|
+
class HttpParser::Error::INVALID_PORT < ::HttpParser::Error; end
|
94
|
+
|
95
|
+
# source://http-parser//lib/http-parser/errors.rb#22
|
96
|
+
class HttpParser::Error::INVALID_QUERY_STRING < ::HttpParser::Error; end
|
97
|
+
|
98
|
+
# source://http-parser//lib/http-parser/errors.rb#16
|
99
|
+
class HttpParser::Error::INVALID_STATUS < ::HttpParser::Error; end
|
100
|
+
|
101
|
+
# source://http-parser//lib/http-parser/errors.rb#18
|
102
|
+
class HttpParser::Error::INVALID_URL < ::HttpParser::Error; end
|
103
|
+
|
104
|
+
# source://http-parser//lib/http-parser/errors.rb#15
|
105
|
+
class HttpParser::Error::INVALID_VERSION < ::HttpParser::Error; end
|
106
|
+
|
107
|
+
# source://http-parser//lib/http-parser/errors.rb#24
|
108
|
+
class HttpParser::Error::LF_EXPECTED < ::HttpParser::Error; end
|
109
|
+
|
110
|
+
# source://http-parser//lib/http-parser/errors.rb#5
|
111
|
+
class HttpParser::Error::OK < ::HttpParser::Error; end
|
112
|
+
|
113
|
+
# source://http-parser//lib/http-parser/errors.rb#31
|
114
|
+
class HttpParser::Error::PAUSED < ::HttpParser::Error; end
|
115
|
+
|
116
|
+
# source://http-parser//lib/http-parser/errors.rb#30
|
117
|
+
class HttpParser::Error::STRICT < ::HttpParser::Error; end
|
118
|
+
|
119
|
+
# source://http-parser//lib/http-parser/errors.rb#33
|
120
|
+
class HttpParser::Error::UNKNOWN < ::HttpParser::Error; end
|
121
|
+
|
122
|
+
# source://http-parser//lib/http-parser/types.rb#14
|
123
|
+
HttpParser::FLAG = T.let(T.unsafe(nil), Hash)
|
124
|
+
|
125
|
+
# source://http-parser//lib/http-parser/types.rb#299
|
126
|
+
class HttpParser::FieldData < ::FFI::Struct; end
|
127
|
+
|
128
|
+
# source://http-parser//lib/http-parser/types.rb#4
|
129
|
+
HttpParser::HTTP_MAX_HEADER_SIZE = T.let(T.unsafe(nil), Integer)
|
130
|
+
|
131
|
+
# source://http-parser//lib/http-parser/types.rb#304
|
132
|
+
class HttpParser::HttpParserUrl < ::FFI::Struct; end
|
133
|
+
|
134
|
+
# Effectively this represents a request instance
|
135
|
+
#
|
136
|
+
# source://http-parser//lib/http-parser/types.rb#86
|
137
|
+
class HttpParser::Instance < ::FFI::Struct
|
138
|
+
# @return [Instance] a new instance of Instance
|
139
|
+
# @yield [_self]
|
140
|
+
# @yieldparam _self [HttpParser::Instance] the object that the method was called on
|
141
|
+
#
|
142
|
+
# source://http-parser//lib/http-parser/types.rb#106
|
143
|
+
def initialize(ptr = T.unsafe(nil)); end
|
144
|
+
|
145
|
+
# Additional data attached to the parser.
|
146
|
+
#
|
147
|
+
# @return [FFI::Pointer] Pointer to the additional data.
|
148
|
+
#
|
149
|
+
# source://http-parser//lib/http-parser/types.rb#257
|
150
|
+
def data; end
|
151
|
+
|
152
|
+
# Returns the error that occurred during processing.
|
153
|
+
#
|
154
|
+
# @return [StandarError] Returns the error that occurred.
|
155
|
+
#
|
156
|
+
# source://http-parser//lib/http-parser/types.rb#241
|
157
|
+
def error; end
|
158
|
+
|
159
|
+
# Indicates an error has occurred when called in a callback
|
160
|
+
#
|
161
|
+
# source://http-parser//lib/http-parser/types.rb#294
|
162
|
+
def error!; end
|
163
|
+
|
164
|
+
# Determines whether an error occurred during processing.
|
165
|
+
#
|
166
|
+
# @return [Boolean] Did a parsing error occur with the request?
|
167
|
+
#
|
168
|
+
# source://http-parser//lib/http-parser/types.rb#230
|
169
|
+
def error?; end
|
170
|
+
|
171
|
+
# Determines if a chunked response has completed
|
172
|
+
#
|
173
|
+
# @return [Boolean] Specifies whether the chunked response has completed
|
174
|
+
#
|
175
|
+
# source://http-parser//lib/http-parser/types.rb#280
|
176
|
+
def final_chunk?; end
|
177
|
+
|
178
|
+
# Flags for the parser.
|
179
|
+
#
|
180
|
+
# @return [Integer] Parser flags.
|
181
|
+
#
|
182
|
+
# source://http-parser//lib/http-parser/types.rb#154
|
183
|
+
def flags; end
|
184
|
+
|
185
|
+
# The parsed HTTP major version number.
|
186
|
+
#
|
187
|
+
# @return [Integer] The HTTP major version number.
|
188
|
+
#
|
189
|
+
# source://http-parser//lib/http-parser/types.rb#164
|
190
|
+
def http_major; end
|
191
|
+
|
192
|
+
# The parsed HTTP Method.
|
193
|
+
#
|
194
|
+
# @return [Symbol] The HTTP Method name.
|
195
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1
|
196
|
+
#
|
197
|
+
# source://http-parser//lib/http-parser/types.rb#208
|
198
|
+
def http_method; end
|
199
|
+
|
200
|
+
# The parsed HTTP minor version number.
|
201
|
+
#
|
202
|
+
# @return [Integer] The HTTP minor version number.
|
203
|
+
#
|
204
|
+
# source://http-parser//lib/http-parser/types.rb#174
|
205
|
+
def http_minor; end
|
206
|
+
|
207
|
+
# The parsed HTTP response Status Code.
|
208
|
+
#
|
209
|
+
# @return [Integer] The HTTP Status Code.
|
210
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec6.html#sec6.1.1
|
211
|
+
#
|
212
|
+
# source://http-parser//lib/http-parser/types.rb#196
|
213
|
+
def http_status; end
|
214
|
+
|
215
|
+
# The parsed HTTP version.
|
216
|
+
#
|
217
|
+
# @return [String] The HTTP version.
|
218
|
+
#
|
219
|
+
# source://http-parser//lib/http-parser/types.rb#184
|
220
|
+
def http_version; end
|
221
|
+
|
222
|
+
# Determines whether the `Connection: keep-alive` header has been
|
223
|
+
# parsed.
|
224
|
+
#
|
225
|
+
# @return [Boolean] Specifies whether the Connection should be kept alive.
|
226
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.10
|
227
|
+
#
|
228
|
+
# source://http-parser//lib/http-parser/types.rb#270
|
229
|
+
def keep_alive?; end
|
230
|
+
|
231
|
+
# Resets the parser.
|
232
|
+
#
|
233
|
+
# @param new_type [:request, :response, :both] The new type for the parser.
|
234
|
+
#
|
235
|
+
# source://http-parser//lib/http-parser/types.rb#124
|
236
|
+
def reset!(new_type = T.unsafe(nil)); end
|
237
|
+
|
238
|
+
# Halts the parser if called in a callback
|
239
|
+
#
|
240
|
+
# source://http-parser//lib/http-parser/types.rb#287
|
241
|
+
def stop!; end
|
242
|
+
|
243
|
+
# The type of the parser.
|
244
|
+
#
|
245
|
+
# @return [:request, :response, :both] The parser type.
|
246
|
+
#
|
247
|
+
# source://http-parser//lib/http-parser/types.rb#134
|
248
|
+
def type; end
|
249
|
+
|
250
|
+
# Sets the type of the parser.
|
251
|
+
#
|
252
|
+
# @param new_type [:request, :response, :both] The new parser type.
|
253
|
+
#
|
254
|
+
# source://http-parser//lib/http-parser/types.rb#144
|
255
|
+
def type=(new_type); end
|
256
|
+
|
257
|
+
# Determines whether the `Upgrade` header has been parsed.
|
258
|
+
#
|
259
|
+
# @return [Boolean] Specifies whether the `Upgrade` header has been seen.
|
260
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.42
|
261
|
+
#
|
262
|
+
# source://http-parser//lib/http-parser/types.rb#220
|
263
|
+
def upgrade?; end
|
264
|
+
end
|
265
|
+
|
266
|
+
# Request Methods
|
267
|
+
#
|
268
|
+
# source://http-parser//lib/http-parser/types.rb#27
|
269
|
+
HttpParser::METHODS = T.let(T.unsafe(nil), FFI::Enum)
|
270
|
+
|
271
|
+
# source://http-parser//lib/http-parser/parser.rb#4
|
272
|
+
class HttpParser::Parser
|
273
|
+
# Initializes the Parser instance.
|
274
|
+
#
|
275
|
+
# @return [Parser] a new instance of Parser
|
276
|
+
# @yield [_self]
|
277
|
+
# @yieldparam _self [HttpParser::Parser] the object that the method was called on
|
278
|
+
#
|
279
|
+
# source://http-parser//lib/http-parser/parser.rb#21
|
280
|
+
def initialize(callback_obj = T.unsafe(nil)); end
|
281
|
+
|
282
|
+
# Registers an `on_body` callback.
|
283
|
+
#
|
284
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5
|
285
|
+
# @yield [instance, body] The given block will be called when the body is recognized in the
|
286
|
+
# message body.
|
287
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
288
|
+
# @yieldparam body [String] The full body or a chunk of the body from a chunked
|
289
|
+
# Transfer-Encoded stream.
|
290
|
+
#
|
291
|
+
# source://http-parser//lib/http-parser/parser.rb#158
|
292
|
+
def on_body(&block); end
|
293
|
+
|
294
|
+
# Registers an `on_chunk_complete` callback.
|
295
|
+
#
|
296
|
+
# @yield [instance] The given block will be called when the current chunk completes.
|
297
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
298
|
+
#
|
299
|
+
# source://http-parser//lib/http-parser/parser.rb#203
|
300
|
+
def on_chunk_complete(&block); end
|
301
|
+
|
302
|
+
# Registers an `on_chunk_header` callback.
|
303
|
+
#
|
304
|
+
# @yield [instance] The given block will be called when a new chunk header is received.
|
305
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
306
|
+
#
|
307
|
+
# source://http-parser//lib/http-parser/parser.rb#188
|
308
|
+
def on_chunk_header(&block); end
|
309
|
+
|
310
|
+
# Registers an `on_header_field` callback.
|
311
|
+
#
|
312
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5
|
313
|
+
# @yield [instance, field] The given block will be called when a Header name is recognized
|
314
|
+
# in the Headers.
|
315
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
316
|
+
# @yieldparam field [String] A recognized Header name.
|
317
|
+
#
|
318
|
+
# source://http-parser//lib/http-parser/parser.rb#100
|
319
|
+
def on_header_field(&block); end
|
320
|
+
|
321
|
+
# Registers an `on_header_value` callback.
|
322
|
+
#
|
323
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html#sec4.5
|
324
|
+
# @yield [instance, value] The given block will be called when a Header value is recognized
|
325
|
+
# in the Headers.
|
326
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
327
|
+
# @yieldparam value [String] A recognized Header value.
|
328
|
+
#
|
329
|
+
# source://http-parser//lib/http-parser/parser.rb#121
|
330
|
+
def on_header_value(&block); end
|
331
|
+
|
332
|
+
# Registers an `on_headers_complete` callback.
|
333
|
+
#
|
334
|
+
# @yield [instance] The given block will be called when the Headers stop.
|
335
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
336
|
+
#
|
337
|
+
# source://http-parser//lib/http-parser/parser.rb#136
|
338
|
+
def on_headers_complete(&block); end
|
339
|
+
|
340
|
+
# Registers an `on_message_begin` callback.
|
341
|
+
#
|
342
|
+
# @yield [instance] The given block will be called when the HTTP message begins.
|
343
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
344
|
+
#
|
345
|
+
# source://http-parser//lib/http-parser/parser.rb#43
|
346
|
+
def on_message_begin(&block); end
|
347
|
+
|
348
|
+
# Registers an `on_message_begin` callback.
|
349
|
+
#
|
350
|
+
# @yield [instance] The given block will be called when the message completes.
|
351
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
352
|
+
#
|
353
|
+
# source://http-parser//lib/http-parser/parser.rb#173
|
354
|
+
def on_message_complete(&block); end
|
355
|
+
|
356
|
+
# Registers an `on_status_complete` callback.
|
357
|
+
#
|
358
|
+
# @yield [instance] The given block will be called when the status is recognized.
|
359
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
360
|
+
#
|
361
|
+
# source://http-parser//lib/http-parser/parser.rb#79
|
362
|
+
def on_status(&block); end
|
363
|
+
|
364
|
+
# Registers an `on_url` callback.
|
365
|
+
#
|
366
|
+
# @see http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.2
|
367
|
+
# @yield [instance, url] The given block will be called when the Request URI is recognized
|
368
|
+
# within the Request-Line.
|
369
|
+
# @yieldparam instance [HttpParser::Instance] The state so far of the request / response being processed.
|
370
|
+
# @yieldparam url [String] The recognized Request URI.
|
371
|
+
#
|
372
|
+
# source://http-parser//lib/http-parser/parser.rb#64
|
373
|
+
def on_url(&block); end
|
374
|
+
|
375
|
+
# Parses data.
|
376
|
+
#
|
377
|
+
# @param inst [HttpParser::Instance] The state so far of the request / response being processed.
|
378
|
+
# @param data [String] The data to parse against the instance specified.
|
379
|
+
# @return [Boolean] Returns true if the data was parsed successfully.
|
380
|
+
#
|
381
|
+
# source://http-parser//lib/http-parser/parser.rb#221
|
382
|
+
def parse(inst, data); end
|
383
|
+
|
384
|
+
class << self
|
385
|
+
# Returns a new request/response instance variable
|
386
|
+
#
|
387
|
+
# source://http-parser//lib/http-parser/parser.rb#13
|
388
|
+
def new_instance(&block); end
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
# source://http-parser//lib/http-parser/parser.rb#5
|
393
|
+
HttpParser::Parser::CALLBACKS = T.let(T.unsafe(nil), Array)
|
394
|
+
|
395
|
+
# source://http-parser//lib/http-parser/parser.rb#230
|
396
|
+
class HttpParser::Parser::Callback < ::FFI::Function
|
397
|
+
class << self
|
398
|
+
# Creates a new Parser callback.
|
399
|
+
#
|
400
|
+
# source://http-parser//lib/http-parser/parser.rb#234
|
401
|
+
def new(&block); end
|
402
|
+
end
|
403
|
+
end
|
404
|
+
|
405
|
+
# source://http-parser//lib/http-parser/parser.rb#245
|
406
|
+
class HttpParser::Parser::DataCallback < ::FFI::Function
|
407
|
+
class << self
|
408
|
+
# source://http-parser//lib/http-parser/parser.rb#246
|
409
|
+
def new(&block); end
|
410
|
+
end
|
411
|
+
end
|
412
|
+
|
413
|
+
# source://http-parser//lib/http-parser/types.rb#315
|
414
|
+
class HttpParser::Settings < ::FFI::Struct; end
|
415
|
+
|
416
|
+
# These share a byte of data as a bitmap
|
417
|
+
#
|
418
|
+
# source://http-parser//lib/http-parser/types.rb#9
|
419
|
+
HttpParser::TYPES = T.let(T.unsafe(nil), FFI::Enum)
|
420
|
+
|
421
|
+
# source://http-parser//lib/http-parser/types.rb#71
|
422
|
+
HttpParser::UrlFields = T.let(T.unsafe(nil), FFI::Enum)
|