module OpenURI::Meta
Mixin for holding meta-information.
Attributes
status
[RW]
[ String, String ]
returns an Array that consists of status code and message.
Public Instance Methods
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/open-uri/0/open-uri.rbs, line 165
def charet: () -> String?
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/open-uri/0/open-uri.rbs, line 175
def content_encoding: () -> Array[String]
Returns a list of encodings in Content-Encoding field as an array of strings.
The encodings are downcased for canonicalization.
() → String
Source
# File vendor/bundle/ruby/4.0.0/gems/rbs-4.0.3/stdlib/open-uri/0/open-uri.rbs, line 163
def content_type: () -> String
returns “type/subtype” which is MIME Content-Type. It is downcased for canonicalization. Content-Type parameters are stripped.