📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 18:08:55
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Net
/
HTTPHeader
📍 /opt/alt/ruby33/share/ri/system/Net/HTTPHeader
🔄 Refresh
✏️
Editing: content_type-i.ri
Read Only
U:RDoc::AnyMethod[iI"content_type:ETI"!Net::HTTPHeader#content_type;TF:privateo:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [ I"HReturns the {media type}[https://en.wikipedia.org/wiki/Media_type] ;TI"6from the value of field <tt>'Content-Type'</tt>, ;TI"'or +nil+ if no such field exists; ;TI"see {Content-Type response header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-response-header]:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"8res = Net::HTTP.get_response(hostname, '/todos/1') ;TI"@res['content-type'] # => "application/json; charset=utf-8" ;TI"0res.content_type # => "application/json";T:@format0: @fileI"lib/net/http/header.rb;T:0@omit_headings_from_table_of_contents_below000[ I"();T@FI"HTTPHeader;TcRDoc::NormalModule00
💾 Save Changes
❌ Cancel