480件ヒット
[1-100件を表示]
(0.067秒)
ライブラリ
-
net
/ http (408) - uri (12)
-
webrick
/ httprequest (36) -
webrick
/ httpresponse (24)
クラス
-
Net
:: HTTPGenericRequest (96) -
URI
:: HTTP (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (24)
モジュール
-
Net
:: HTTPHeader (312)
キーワード
- [] (12)
- []= (12)
-
basic
_ auth (12) - body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) - chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - delete (12)
- each (12)
-
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - fetch (36)
-
form
_ data= (12) - method (24)
- path (12)
-
proxy
_ basic _ auth (12) -
query
_ string (12) -
query
_ string= (12) - range (12)
-
range
_ length (12) -
request
_ body _ permitted? (12) -
request
_ uri= (12) -
response
_ body _ permitted? (12) -
set
_ content _ type (12) -
set
_ form _ data (12)
検索結果
先頭5件
-
URI
:: HTTP # request _ uri -> String (21114.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... -
WEBrick
:: HTTPRequest # request _ uri -> URI (21102.0) -
リクエスト URI を表す URI オブジェクトを返します。
リクエスト URI を表す URI オブジェクトを返します。 -
WEBrick
:: HTTPResponse # request _ uri -> URI | nil (21102.0) -
リクエストの URI を返します。
リクエストの URI を返します。 -
WEBrick
:: HTTPResponse # request _ uri=(uri) (9102.0) -
リクエストの URI をセットします。 デフォルトは nil です。
...リクエストの URI をセットします。
デフォルトは nil です。
@param uri リクエストの URI を URI オブジェクトで指定します。... -
Net
:: HTTPHeader # content _ type=(type) (6207.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 # set _ content _ type(type , params = {}) (6207.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
:: HTTPGenericRequest # request _ body _ permitted? -> bool (6113.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.requ......est_body_permitted? # => false
//}... -
Net
:: HTTPGenericRequest # response _ body _ permitted? -> bool (6113.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
//}... -
Net
:: HTTPGenericRequest # path -> String (6107.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"
//}...