Gestionnaire de fichiers - Editer - /opt/cpanel/ea-ruby24/root/usr/share/ri/system/CGI/http_header-i.ri
Arrière
U:RDoc::AnyMethod[iI"http_header:EFI"CGI#http_header;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"-Create an HTTP header block as a string.;To:RDoc::Markup::BlankLine o; ; [I"8Includes the empty line that ends the header block.;T@o:RDoc::Markup::List: @type: NOTE:@items[o:RDoc::Markup::ListItem:@label[I"+content_type_string+;T; [o; ; [I"CIf this form is used, this string is the <tt>Content-Type</tt>;To;;[I"+headers_hash+;T; [ o; ; [I"GA Hash of header values. The following header keys are recognized:;T@o;; ;;[o;;[I" type;T; [o; ; [I"6The Content-Type header. Defaults to "text/html";To;;[I"charset;T; [o; ; [I"BThe charset of the body, appended to the Content-Type header.;To;;[I"nph;T; [o; ; [I"CA boolean value. If true, prepend protocol string and status ;TI">code, and date; and sets default values for "server" and ;TI"("connection" if not explicitly set.;To;;[I"status;T; [o; ; [I"KThe HTTP status code as a String, returned as the Status header. The ;TI"values are:;T@o;; ;;[o;;[I"OK;T; [o; ; [I"200 OK;To;;[I"PARTIAL_CONTENT;T; [o; ; [I"206 Partial Content;To;;[I"MULTIPLE_CHOICES;T; [o; ; [I"300 Multiple Choices;To;;[I" MOVED;T; [o; ; [I"301 Moved Permanently;To;;[I" REDIRECT;T; [o; ; [I"302 Found;To;;[I"NOT_MODIFIED;T; [o; ; [I"304 Not Modified;To;;[I"BAD_REQUEST;T; [o; ; [I"400 Bad Request;To;;[I"AUTH_REQUIRED;T; [o; ; [I"401 Authorization Required;To;;[I"FORBIDDEN;T; [o; ; [I"403 Forbidden;To;;[I"NOT_FOUND;T; [o; ; [I"404 Not Found;To;;[I"METHOD_NOT_ALLOWED;T; [o; ; [I"405 Method Not Allowed;To;;[I"NOT_ACCEPTABLE;T; [o; ; [I"406 Not Acceptable;To;;[I"LENGTH_REQUIRED;T; [o; ; [I"411 Length Required;To;;[I"PRECONDITION_FAILED;T; [o; ; [I"412 Precondition Failed;To;;[I"SERVER_ERROR;T; [o; ; [I"500 Internal Server Error;To;;[I"NOT_IMPLEMENTED;T; [o; ; [I"501 Method Not Implemented;To;;[I"BAD_GATEWAY;T; [o; ; [I"502 Bad Gateway;To;;[I"VARIANT_ALSO_VARIES;T; [o; ; [I" 506 Variant Also Negotiates;T@o;;[I"server;T; [o; ; [I"8The server software, returned as the Server header.;To;;[I"connection;T; [o; ; [I"AThe connection type, returned as the Connection header (for ;TI"instance, "close".;To;;[I"length;T; [o; ; [I"BThe length of the content that will be sent, returned as the ;TI"Content-Length header.;To;;[I" language;T; [o; ; [I"CThe language of the content, returned as the Content-Language ;TI"header.;To;;[I"expires;T; [o; ; [I"@The time on which the current content expires, as a +Time+ ;TI",object, returned as the Expires header.;To;;[I"cookie;T; [ o; ; [ I"KA cookie or cookies, returned as one or more Set-Cookie headers. The ;TI"Jvalue can be the literal string of the cookie; a CGI::Cookie object; ;TI"Lan Array of literal cookie strings or Cookie objects; or a hash all of ;TI"?whose values are literal cookie strings or Cookie objects.;T@o; ; [I">These cookies are in addition to the cookies held in the ;TI"@output_cookies field.;T@o; ; [I"DOther headers can also be set; they are appended as key: value.;T@o; ; [I"Examples:;T@o:RDoc::Markup::Verbatim; [I"http_header ;TI"! # Content-Type: text/html ;TI" ;TI"http_header("text/plain") ;TI"" # Content-Type: text/plain ;TI" ;TI"'http_header("nph" => true, ;TI"6 "status" => "OK", # == "200 OK" ;TI"1 # "status" => "200 GOOD", ;TI"9 "server" => ENV['SERVER_SOFTWARE'], ;TI"* "connection" => "close", ;TI". "type" => "text/html", ;TI"0 "charset" => "iso-2022-jp", ;TI"B # Content-Type: text/html; charset=iso-2022-jp ;TI"& "length" => 103, ;TI"' "language" => "ja", ;TI"0 "expires" => Time.now + 30, ;TI"5 "cookie" => [cookie1, cookie2], ;TI", "my_header1" => "my_value" ;TI"- "my_header2" => "my_value") ;T:@format0o; ; [I"5This method does not perform charset conversion.;T: @fileI"lib/cgi/core.rb;T:0@omit_headings_from_table_of_contents_below0I"Lhttp_header(content_type_string="text/html") http_header(headers_hash) ;T0[[I"header;To;; [ o; ; [I"PThis method is an alias for #http_header, when HTML5 tag maker is inactive.;T@o; ; [I"MNOTE: use #http_header to create HTTP header blocks, this alias is only ;TI"*provided for backwards compatibility.;T@o; ; [I"KUsing #header with the HTML5 tag maker will create a <header> element.;T;@;0I"(options='text/html');T@FI"CGI;TcRDoc::NormalClass00
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Génération de la page: 0.01 |
proxy
|
phpinfo
|
Réglages