1032件ヒット
[1-100件を表示]
(0.029秒)
ライブラリ
-
cgi
/ core (24) -
net
/ http (948) -
webrick
/ httprequest (36) -
webrick
/ httpresponse (12) -
webrick
/ httputils (12)
クラス
- CGI (24)
-
Net
:: HTTP (420) -
Net
:: HTTPResponse (36) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
-
Net
:: HTTPHeader (492)
キーワード
- [] (36)
- []= (12)
-
add
_ field (12) -
basic
_ auth (12) -
canonical
_ each (12) - chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - copy (12)
- delete (24)
- each (12)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - fetch (36)
-
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - head (12)
- head2 (24)
- key? (12)
- length (12)
- lock (12)
-
main
_ type (12) - method (12)
- mkcol (12)
- move (12)
- out (12)
- patch (24)
- post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
-
proxy
_ basic _ auth (12) - put (12)
- put2 (24)
- range (12)
- range= (24)
-
range
_ length (12) -
raw
_ header (12) -
reader
_ header (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (12)
-
send
_ request (12) -
set
_ content _ type (12) -
set
_ form _ data (12) -
set
_ range (36) - size (12)
-
sub
_ type (12) - trace (12)
-
type
_ params (12) - unlock (12)
検索結果
先頭5件
-
Net
:: HTTPResponse # header -> self (21103.0) -
互換性を保つためだけに導入されたメソッドです。 使わないでください。
互換性を保つためだけに導入されたメソッドです。
使わないでください。
自分自身を返します。 -
WEBrick
:: HTTPRequest # header -> Hash (21102.0) -
ヘッダ名をキー、内容をその値とするハッシュを返します。キーも値も文字列です。
ヘッダ名をキー、内容をその値とするハッシュを返します。キーも値も文字列です。 -
WEBrick
:: HTTPResponse # header -> Hash (21102.0) -
ヘッダ名をキー、ヘッダの値を値とするハッシュを返します。ハッシュのキーも値も文字列です。
ヘッダ名をキー、ヘッダの値を値とするハッシュを返します。ハッシュのキーも値も文字列です。 -
CGI
# header(options = "text / html") -> String (18172.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキ......、HTTP のバージョン、ステータスコード、
Date ヘッダをセットします。また Server と Connection の各ヘッダにもデフォルト値をセットします。
偽を指定する場合は、これらの値を明示的にセットしてください。
: status
HTTP......gotiates"
@param options Hash か文字列で HTTP ヘッダを生成するための情報を指定します。
例:
header
# Content-Type: text/html
header("text/plain")
# Content-Type: text/plain
header({"nph" => true,
"statu... -
Net
:: HTTPHeader # each _ header {|name , val| . . . . } -> () (9126.0) -
保持しているヘッダ名とその値をそれぞれ ブロックに渡して呼びだします。
...結した文字列がブロックに渡されます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_header { |key,value| puts "#{key} = #{value}" }
# => accept-encoding = gzip;q=1.0,deflate;q=0.6,id... -
Net
:: HTTPResponse # reader _ header -> self (9103.0) -
互換性を保つためだけに導入されたメソッドです。 使わないでください。
互換性を保つためだけに導入されたメソッドです。
使わないでください。
自分自身を返します。 -
WEBrick
:: HTTPRequest # raw _ header -> String (9102.0) -
生のヘッダを返します。
生のヘッダを返します。 -
Net
:: HTTPHeader # fetch(key) -> String (6061.0) -
key ヘッダフィールドを返します。
...y が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")....../http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP......::Get.new(uri.request_uri)
req.fetch("content-length") { |e| 99 } # => 99
//}
@see Net::HTTPHeader#[]... -
Net
:: HTTPHeader # fetch(key) {|hash| . . . . } -> String (6061.0) -
key ヘッダフィールドを返します。
...y が存在する][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("user-agent") # => "Ruby"
//}
//emlist[例 key のみ指定。key が存在しない][ruby]{
require 'net/http'
begin
req.fetch("content-length")....../http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.fetch("content-length", "default") # => "default"
//}
//emlist[例 key とブロックを指定][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP......::Get.new(uri.request_uri)
req.fetch("content-length") { |e| 99 } # => 99
//}
@see Net::HTTPHeader#[]...