るりまサーチ

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

別のキーワード

  1. _builtin to_i
  2. fiddle to_i
  3. matrix elements_to_i
  4. ipaddr to_i
  5. csv to_i

検索結果

<< 1 2 3 ... > >>

WEBrick::HTTPRequest#request_uri -> URI (30502.0)

リクエスト URI を表す URI オブジェクトを返します。

...リクエスト URI を表す URI オブジェクトを返します。...

WEBrick::HTTPResponse#request_uri -> URI | nil (30502.0)

リクエストの URI を返します。

...リクエストの URI を返します。...

URI::HTTP#request_uri -> String (30308.0)

自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。

...字列で返します。
query が nil である場合は、自身の path を返します。

path が空である場合には、path は「'/'」であるとします。

例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri #=>...

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

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

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

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

WEBrick::HTTPRequest#query_string -> String (12417.0)

リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。

...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。...

絞り込み条件を変える

WEBrick::HTTPRequest#query_string=(value) (12217.0)

リクエスト URI のクエリーを文字列で表すアクセサです。 デフォルトは request_uri.query です。

...リクエスト URI のクエリーを文字列で表すアクセサです。
デフォルトは request_uri.query です。

@param value クエリーを表す文字列を指定します。...

Net::HTTPGenericRequest#request_body_permitted? -> bool (12213.0)

リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。

...場合真を返します。

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

uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.request_body_permitted? # => true

head = Net::HTTP::Head.new(uri.request_uri)
head.request_body_permitted? # => false
//}...

Net::HTTPGenericRequest#response_body_permitted? -> bool (12213.0)

サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。

...合真を返します。

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

uri = URI.parse('http://www.example.com/index.html')
post = Net::HTTP::Post.new(uri.request_uri)
post.response_body_permitted? # => true

head = Net::HTTP::Head.new(uri.request_uri)
head.response_body_permitted? # => false
//}...

Net::HTTPHeader#basic_auth(account, password) -> [String] (12207.0)

Authorization: ヘッダを BASIC 認証用にセットします。

...Authorization: ヘッダを BASIC 認証用にセットします。

@param account アカウント名を文字列で与えます。
@param password パスワードを文字列で与えます。

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

uri = URI.parse('http://www.example.com/index.html')
req = Net:...
...:HTTP::Get.new(uri.request_uri)
req.basic_auth("user", "pass") # => ["Basic dXNlcjpwYXNz"]
//}...

Net::HTTPHeader#each_capitalized_name {|name| .... } -> () (12207.0)

保持しているヘッダ名を正規化 ('x-my-header' -> 'X-My-Header') して、ブロックに渡します。

...er' -> 'X-My-Header')
して、ブロックに渡します。

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

uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.each_capitalized_name { |key| puts key }

# => Accept-Encoding
# => Accept
# => User-Agent
//}...

絞り込み条件を変える

<< 1 2 3 ... > >>