別のキーワード
ライブラリ
-
cgi
/ core (24) - csv (24)
- mkmf (276)
-
net
/ http (996) -
net
/ pop (12) - optparse (156)
-
rubygems
/ package / tar _ header (240) -
rubygems
/ package / tar _ reader / entry (12) -
rubygems
/ remote _ fetcher (36) - shell (12)
-
shell
/ command-processor (42) -
shell
/ filter (12) - uri (12)
-
webrick
/ httprequest (36) -
webrick
/ httpresponse (12) -
webrick
/ httpservlet / abstract (84) -
webrick
/ httputils (12)
クラス
- CGI (24)
-
CSV
:: FieldInfo (12) -
CSV
:: Table (12) -
Gem
:: Package :: TarHeader (240) -
Gem
:: Package :: TarReader :: Entry (12) -
Gem
:: RemoteFetcher (36) -
Net
:: HTTP (444) -
Net
:: HTTPGenericRequest (24) -
Net
:: HTTPResponse (36) -
Net
:: POPMail (12) - OptionParser (156)
- Shell (12)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (12) -
URI
:: MailTo (12) -
WEBrick
:: HTTPRequest (36) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPServlet :: AbstractServlet (84) -
WEBrick
:: HTTPUtils :: FormData (12)
モジュール
- Kernel (276)
-
Net
:: HTTPHeader (492)
キーワード
- == (12)
- [] (48)
- []= (12)
-
add
_ field (12) -
basic
_ auth (12) -
canonical
_ each (12) - cat (6)
-
check
_ signedness (24) -
check
_ sizeof (24) - checksum (12)
- chunked? (12)
-
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) -
convertible
_ int (24) - copy (12)
- delete (24)
- devmajor (12)
- devminor (12)
-
do
_ DELETE (12) -
do
_ GET (12) -
do
_ HEAD (12) -
do
_ OPTIONS (12) -
do
_ POST (12) -
do
_ PUT (12) - each (12)
-
each
_ capitalized (12) -
each
_ capitalized _ name (12) -
each
_ header (12) -
each
_ key (12) -
each
_ name (12) -
each
_ value (12) - echo (6)
- empty? (12)
- fetch (36)
-
fetch
_ path (12) -
find
_ header (12) -
find
_ type (24) -
form
_ data= (12) - get (24)
- get2 (24)
-
get
_ fields (12) - gid (12)
- glob (18)
- gname (12)
-
have
_ header (24) -
have
_ macro (24) -
have
_ struct _ member (24) -
have
_ type (24) - head2 (24)
- header (84)
- headers (12)
- key? (12)
- length (12)
- linkname (12)
- lock (12)
- magic (12)
-
main
_ type (12) - method (12)
- mkcol (12)
- mode (12)
- move (12)
- mtime (12)
- name (12)
-
on
_ head (12) -
on
_ tail (12) -
open
_ uri _ or _ path (12) - out (18)
- parse (24)
- parse! (12)
- patch (24)
- post (24)
- post2 (24)
- prefix (12)
- propfind (12)
- proppatch (12)
-
proxy
_ basic _ auth (12) - put (12)
- put2 (24)
- range (12)
- range= (24)
-
range
_ length (12) -
raw
_ header (12) -
reader
_ header (12) - request (36)
-
request
_ body _ permitted? (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (12)
-
response
_ body _ permitted? (12) -
send
_ request (12) - service (12)
-
set
_ content _ type (12) -
set
_ form _ data (12) -
set
_ range (36) - size (24)
-
sub
_ type (12) - summarize (24)
-
summary
_ indent (12) -
summary
_ indent= (12) -
summary
_ width (12) -
summary
_ width= (12) - system (18)
- tee (6)
-
to
_ a (12) -
to
_ s (12) - trace (12)
- transact (6)
-
try
_ constant (24) -
try
_ static _ assert (24) -
try
_ type (24) -
type
_ params (12) - typeflag (12)
- uid (12)
- uname (12)
- unlock (12)
-
update
_ checksum (12) - version (12)
検索結果
先頭5件
- Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse - Net
:: HTTP # request _ head(path , header = nil) -> Net :: HTTPResponse - Net
:: HTTP # request _ head(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse
-
Net
:: HTTP # head(path , header = nil) -> Net :: HTTPResponse (21320.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse のインスタンスを返します。
...ーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse のインスタンスを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', .......@param path 取得するエンティティのパスを文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
1.1 互換モードの場合は、レスポンスに応じて例外が発生します。
//emlist[例][ruby]{
require 'net/http'......response = nil
Net::HTTP.start('some.www.server', 80) {|http|
response = http.head('/index.html')
}
p response['content-type']
//}
@see Net::HTTP#request_head... -
Net
:: HTTP # head2(path , header = nil) -> Net :: HTTPResponse (9329.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', .......とともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味はありません。
@param path ヘッダを取得するエンティティの......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # head2(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9329.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', .......とともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味はありません。
@param path ヘッダを取得するエンティティの......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) -> Net :: HTTPResponse (9329.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', .......とともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味はありません。
@param path ヘッダを取得するエンティティの......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Net
:: HTTP # request _ head(path , header = nil) {|response| . . . . } -> Net :: HTTPResponse (9329.0) -
サーバ上の path にあるエンティティのヘッダのみを取得します。 Net::HTTPResponse オブジェクトを返します。
...サーバ上の path にあるエンティティのヘッダのみを取得します。
Net::HTTPResponse オブジェクトを返します。
header が nil
でなければ、リクエストを送るときにその内容を HTTP ヘッダとして
送ります。 header は { 'Accept' = > '*/*', .......とともに呼び出されたときは、
Net::HTTP#request_get と同じ動作を
しますが、そもそもヘッダしか要求していないので
body は空です。そのためこの動作はそれほど意味はありません。
@param path ヘッダを取得するエンティティの......文字列で指定します。
@param header リクエストの HTTP ヘッダをハッシュで指定します。
head2 は時代遅れなので使わないでください。
//emlist[例][ruby]{
response = http.request_head('/index.html')
p response['content-type']
//}
@see Net::HTTP#head... -
Gem
:: Package :: TarReader :: Entry # header -> Gem :: Package :: TarHeader (9301.0) -
自身のヘッダを返します。
自身のヘッダを返します。 -
Net
:: HTTPHeader # content _ type=(type) (9201.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 = {}) (9201.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"
//}... -
OptionParser
# on _ head(*arg , &block) -> self (9108.0) -
オプションを取り扱うためのブロックを自身の持つリストの最初に登録します。
...す。
@param arg OptionParser#on と同様です。
@param block OptionParser#on と同様です。
//emlist[例][ruby]{
require "optparse"
opts = OptionParser.new do |opts|
opts.on_head("-i", "--init")
opts.on("-u", "--update")
opts.on_tail("-h", "--help")
end
puts opts.help
# => Usage......: test [options]
# -i, --init
# -u, --update
# -h, --help
//}
@see OptionParser#on, OptionParser#on_tail...