るりまサーチ

最速Rubyリファレンスマニュアル検索!
440件ヒット [1-100件を表示] (0.141秒)

別のキーワード

  1. cgi escape_element
  2. cgi escape_html
  3. cgi table_for_escape_html__
  4. cgi escape
  5. matrix tr

モジュール

キーワード

検索結果

<< 1 2 3 ... > >>

Net::HTTP#ciphers -> String | [String] | nil (404.0)

Net::HTTP#ciphers で設定した値を返します。

Net::HTTP#ciphers で設定した値を返します。

OpenSSL::SSL::SSLContext#ciphers が返す値とは
異なるので注意してください。

@see Net::HTTP#ciphers=

Net::HTTPHeader#fetch(key) -> String (205.0)

key ヘッダフィールドを返します。

...key が存在する][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...
...efault を指定][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", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.exa...

Net::HTTPHeader#fetch(key) {|hash| .... } -> String (205.0)

key ヘッダフィールドを返します。

...key が存在する][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...
...efault を指定][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", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.exa...

Net::HTTPHeader#fetch(key, default) -> String (205.0)

key ヘッダフィールドを返します。

...key が存在する][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...
...efault を指定][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", "default") # => "default"
//}

//emlist[例 key とブロックを指定][ruby]{
require 'net/http'

uri = URI.parse('http://www.exa...

Net::HTTP#proxy_address -> String|nil (204.0)

プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス を返します。

プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス
を返します。

そうでないなら nil を返します。

proxyaddr は時代遅れのメソッドです。

@see Net::HTTP#proxy_address=, Net::HTTP#proxy_port, Net::HTTP.new

絞り込み条件を変える

Net::HTTP#proxyaddr -> String|nil (204.0)

プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス を返します。

プロクシ経由で接続する HTTP オブジェクトならプロクシのアドレス
を返します。

そうでないなら nil を返します。

proxyaddr は時代遅れのメソッドです。

@see Net::HTTP#proxy_address=, Net::HTTP#proxy_port, Net::HTTP.new

Net::HTTP.get(host, path, port = 80) -> String (204.0)

指定した対象に GET リクエストを送り、そのボディを 文字列として返します。

指定した対象に GET リクエストを送り、そのボディを
文字列として返します。

対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。

@param uri データの取得対象を URI で指定します。
@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get

Net::HTTP.get(uri) -> String (204.0)

指定した対象に GET リクエストを送り、そのボディを 文字列として返します。

指定した対象に GET リクエストを送り、そのボディを
文字列として返します。

対象の指定方法は URI で指定するか、
(host, path, port) で指定するかのいずれかです。

@param uri データの取得対象を URI で指定します。
@param host 接続先のホストを文字列で指定します。
@param path データの存在するパスを文字列で指定します。
@param port 接続するポートを整数で指定します。
@see Net::HTTP#get

Net::HTTPResponse#body -> String | () | nil (204.0)

エンティティボディを返します。

...dapter のインスタンスを返しますが、
これは使わないでください。

entity は obsolete です。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}...

Net::HTTPResponse#entity -> String | () | nil (204.0)

エンティティボディを返します。

...dapter のインスタンスを返しますが、
これは使わないでください。

entity は obsolete です。

//emlist[例][ruby]{
require 'net/http'

uri = "http://www.example.com/index.html"
response = Net::HTTP.get_response(URI.parse(uri))
response.body[0..10] # => "<!doctype h"
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>