File: C:/Ruby27-x64/share/ri/2.7.0/system/Net/HTTPHeader/set_form-i.ri
U:RDoc::AnyMethod[iI"
set_form:ETI"Net::HTTPHeader#set_form;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [
I" Set an HTML form data set. ;TI"G+params+ is the form data set; it is an Array of Arrays or a Hash ;TI"7+enctype is the type to encode the form data set. ;TI"EIt is application/x-www-form-urlencoded or multipart/form-data. ;TI"9+formopt+ is an optional hash to specify the detail.;To:RDoc::Markup::BlankLine o:RDoc::Markup::List:
@type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"
boundary;T; [o;
; [I"*the boundary of the multipart message;To;;[I"charset;T; [o;
; [I"=the charset of the message. All names and the values of ;TI"0non-file fields are encoded as the charset.;T@o;
; [I"BEach item of params is an array and contains following items:;To;;
;;[o;;[I"+name+;T; [o;
; [I"the name of the field;To;;[I"+value+;T; [o;
; [I"<the value of the field, it should be a String or a File;To;;[I"
+opt+;T; [o;
; [I"7an optional hash to specify additional information;T@o;
; [I"2Each item is a file field or a normal field. ;TI"CIf +value+ is a File object or the +opt+ have a filename key, ;TI")the item is treated as a file field.;T@o;
; [I"FIf Transfer-Encoding is set as chunked, this send the request in ;TI"Echunked encoding. Because chunked encoding is HTTP/1.1 feature, ;TI"Gyou must confirm the server to support HTTP/1.1 before sending it.;T@o;
; [I"
Example:;To:RDoc::Markup::Verbatim; [I"4http.set_form([["q", "ruby"], ["lang", "en"]])
;T:@format0o;
; [I"6See also RFC 2388, RFC 2616, HTML 4.01, and HTML5;T:
@fileI"lib/net/http/header.rb;T:0@omit_headings_from_table_of_contents_below000[ I"F(params, enctype='application/x-www-form-urlencoded', formopt={});T@QFI"HTTPHeader;TcRDoc::NormalModule00