216件ヒット
[201-216件を表示]
(0.014秒)
クラス
-
Net
:: HTTP (24) -
Net
:: HTTPGenericRequest (84)
モジュール
-
CGI
:: HtmlExtension (96) -
Net
:: HTTPHeader (12)
キーワード
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) -
content
_ type (12) - form (48)
- method (12)
-
multipart
_ form (48) -
request
_ body _ permitted? (12) -
response
_ body _ permitted? (12)
検索結果
-
Net
:: HTTPGenericRequest # body=(body) (25.0) -
サーバに送るリクエストのエンティティボディを文字列で設定します。
...。
@param body 設定するボディを文字列で与えます。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.body = "Test Post Data" # => "Test Post Data"
//}
@see Net::HTTPGenericRequest#body... -
Net
:: HTTPGenericRequest # method -> String (19.0) -
リクエストの HTTP メソッドを文字列で返します。
...リクエストの HTTP メソッドを文字列で返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Post.new(uri.request_uri)
req.method # => "POST"
req = Net::HTTP::Get.new(uri.request_uri)
req.method # => "GET"
//}...