るりまサーチ

最速Rubyリファレンスマニュアル検索!
696件ヒット [1-100件を表示] (0.141秒)
トップページ > クエリ:t[x] > クエリ:uri=[x]

別のキーワード

  1. openssl t61string
  2. asn1 t61string
  3. matrix t
  4. t61string new
  5. fiddle type_size_t

検索結果

<< 1 2 3 ... > >>

DRb::ExtServManager#uri=(uri) (21100.0)

サービス起動時にプロセスを spawn する時に渡す URI を設定します。

...サービス起動時にプロセスを spawn する時に渡す URI を設定します。

@see DRb::ExtServManager#uri...

WEBrick::HTTPResponse#request_uri=(uri) (12200.0)

リクエストの URI をセットします。 デフォルトは nil です。

リクエストの URI をセットします。
デフォルトは nil です。

@param uri リクエストの URI を URI オブジェクトで指定します。

Net::HTTPHeader#set_content_type(type, params = {}) (9206.0)

type と params から Content-Type: ヘッダフィールドの 値を設定します。

...type と params から Content-Type: ヘッダフィールドの
値を設定します。

@param type メディアタイプを文字列で指定します。
@param params パラメータ属性をハッシュで指定します。

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

uri =
URI.parse('http://www....
...example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data' # => "multipart/form-data"
req.content_type # => "multipart/form-data"
//}...

Net::HTTPHeader#content_length -> Integer|nil (6206.0)

Content-Length: ヘッダフィールドの表している値を整数で返します。

...Content-Length: ヘッダフィールドの表している値を整数で返します。

ヘッダが設定されていない場合には nil を返します。

@raise Net::HTTPHeaderSyntaxError フィールドの値が不正である場合に
発生します。...
...//emlist[例][ruby]{
require 'net/http'

uri =
URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.content_length # => nil
req.content_length = 10
req.content_length # => 10
//}...

DRb.#start_service(uri=nil, front=nil, config_or_acl=nil) -> () (6201.0)

dRuby のサービス(サーバ)を起動します。

...bind します。
通常は 'druby://<hostname>:<port>' という形式の URI を指定します。
このときは TCP が通信手段として使われます。
'drbunix:' のような他のプロトコルを指定することもできます。

front でフロントオブジェクト(URI に結...
...by経由のメソッドのログを
$stdout に出力します。デフォルトは false。
: :tcp_acl
サーバに設定する ACL(Access Control List)。詳しくは ACL
を見てください。デフォルトは nil(設定しない)。
: :load_limit
サーバが受け付けるメッセ...
...ージの最大バイト数。デフォルトは
26214400(25MB)
: :argc_limit
サーバが受け付けるリモートメソッド呼出の引数の最大個数。
デフォルトは256。
: :auto_load
真に設定すると、
URIで指定されたプロトコルを取り扱うのに
...

絞り込み条件を変える

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

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

...ドを返します。

たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。

該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ...
...lt 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。

//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'

uri =
...
...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")
rescue => e
e # => #<KeyError: key not found: "content-lengt...

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

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

...ドを返します。

たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。

該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ...
...lt 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。

//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'

uri =
...
...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")
rescue => e
e # => #<KeyError: key not found: "content-lengt...

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

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

...ドを返します。

たとえばキー 'content-length' に対しては '2048'
のような文字列が得られます。キーが存在しなければ nil を返します。

該当するキーが登録されてい
ない時には、引数 default が与えられていればその値を、ブ...
...lt 該当するキーが登録されていない時の返り値を指定します。
@raise IndexError 引数defaultもブロックも与えられてない時、キーの探索に 失敗すると発生します。

//emlist[例 key のみ指定。key が存在する][ruby]{
require 'net/http'

uri =
...
...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")
rescue => e
e # => #<KeyError: key not found: "content-lengt...

Net::HTTPHeader#form_data=(params) (6112.0)

HTMLのフォームのデータ params から ヘッダフィールドとボディを設定します。

...HTMLのフォームのデータ params から
ヘッダフィールドとボディを設定します。

ヘッダフィールド Content-Type: には
'application/x-www-form-urlencoded' が設定されます。

@param params HTML のフォームデータの Hash を与えます。
@param sep デ...
...ist[例 form_data][ruby]{
require 'net/http'

uri =
URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.form_data = {"q" => ["ruby", "perl"], "lang" => "en"} # => {"q"=>["ruby", "perl"], "lang"=>"en"}
//}

//emlist[例 set_form_data][ruby]{
require 'net/http'...
...uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.set_form_data({"q" => "ruby", "lang" => "en"}, ';') # => "application/x-www-form-urlencoded"
//}...
<< 1 2 3 ... > >>