264件ヒット
[1-100件を表示]
(0.112秒)
別のキーワード
ライブラリ
-
net
/ http (156) - optparse (24)
- uri (60)
-
webrick
/ httprequest (12) -
webrick
/ https (12)
クラス
-
Net
:: HTTPGenericRequest (96) - OptionParser (12)
-
OptionParser
:: ParseError (12) -
URI
:: Generic (48) -
URI
:: HTTP (12) -
WEBrick
:: HTTPRequest (24)
モジュール
-
Net
:: HTTPHeader (60)
キーワード
- + (12)
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - each (12)
-
each
_ header (12) -
each
_ value (12) - environment (12)
-
form
_ data= (12) - merge (12)
- method (12)
- opaque (12)
- path (12)
- query (12)
-
request
_ body _ permitted? (12) -
request
_ uri (12) -
response
_ body _ permitted? (12) -
set
_ form _ data (12) -
set
_ option (12) -
unparsed
_ uri (12)
検索結果
先頭5件
-
WEBrick
:: HTTPRequest # parse(socket = nil) -> () (27202.0) -
指定された socket からクライアントのリクエストを読み込み、 自身のアクセサなどを適切に設定します。
...指定された socket からクライアントのリクエストを読み込み、
自身のアクセサなどを適切に設定します。
@param socket クライアントに接続された IO オブジェクトを指定します。... -
OptionParser
:: ParseError # set _ option(opt , eq) -> self (15301.0) -
エラーのあったオプションを指定します。
...します。
eq が真の場合、self が管理するエラーのあったオプションの一覧の先頭を
opt で置き換えます。そうでない場合は先頭に opt を追加します。
@param opt エラーのあったオプションを指定します。
@param eq self が管理す... -
Net
:: HTTPGenericRequest # request _ body _ permitted? -> bool (15207.0) -
リクエストにエンティティボディを一緒に送ることが許されている HTTP メソッド (POST など)の場合真を返します。
...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
//}... -
WEBrick
:: HTTPRequest # unparsed _ uri -> String (15201.0) -
リクエストの URI を文字列で返します。
リクエストの URI を文字列で返します。 -
URI
:: Generic # opaque -> String | nil (12237.0) -
自身の opaque を文字列で返します。設定されていない場合は nil を返します。
...身の opaque を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/').opaque #=> nil
p URI.parse('mailto:nospam@localhost').opaque #=> "nospam@localhost"
p URI.parse('urn:ietf:rfc:1149').opaque... -
URI
:: HTTP # request _ uri -> String (9125.0) -
自身の「path + '?' + query」を文字列で返します。 query が nil である場合は、自身の path を返します。
...身の「path + '?' + query」を文字列で返します。
query が nil である場合は、自身の path を返します。
path が空である場合には、path は「'/'」であるとします。
例:
require 'uri'
u = URI.parse("http://example.com/search?q=xxx")
p u.request_uri......#=> "/search?q=xxx"... -
Net
:: HTTPGenericRequest # path -> String (9107.0) -
リクエストする path を文字列で返します。
...リクエストする path を文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(uri.request_uri)
req.path # => "/index.html"
//}... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (9107.0) -
サーバからのレスポンスにエンティティボディを含むことが許されている HTTP メソッド (GET, POST など)の場合真を返します。
...TP メソッド (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.resp......onse_body_permitted? # => false
//}... -
URI
:: Generic # query -> String | nil (6113.0) -
自身の query を文字列で返します。設定されていない場合は nil を返します。
...自身の query を文字列で返します。設定されていない場合は nil を返します。
例:
require 'uri'
p URI.parse('http://example.com/?hoge').query #=> "hoge"...