📁 File Manager Pro
v10.0.3 | PHP: 8.1.34
Server: Apache
2026-06-22 18:10:26
📂
/ (Root)
/
opt
/
alt
/
ruby33
/
share
/
ri
/
system
/
Net
/
HTTPHeader
📍 /opt/alt/ruby33/share/ri/system/Net/HTTPHeader
🔄 Refresh
✏️
Editing: set_content_type-i.ri
Read Only
U:RDoc::AnyMethod[iI"set_content_type:ETI"%Net::HTTPHeader#set_content_type;TF:privateo:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"6Sets the value of field <tt>'Content-Type'</tt>; ;TI"returns the new value; ;TI"}see {Content-Type request header}[https://en.wikipedia.org/wiki/List_of_HTTP_header_fields#content-type-request-header]:;To:RDoc::Markup::BlankLine o:RDoc::Markup::Verbatim; [I"#req = Net::HTTP::Get.new(uri) ;TI"Hreq.set_content_type('application/json') # => ["application/json"] ;T:@format0o; ; [I"TNet::HTTPHeader#content_type= is an alias for Net::HTTPHeader#set_content_type.;T: @fileI"lib/net/http/header.rb;T:0@omit_headings_from_table_of_contents_below000[[I"content_type=;To;; [ ;@;0I"(type, params = {});T@FI"HTTPHeader;TcRDoc::NormalModule00
💾 Save Changes
❌ Cancel