別のキーワード
ライブラリ
-
cgi
/ core (22) - csv (22)
- mkmf (253)
-
net
/ http (913) -
net
/ pop (11) - optparse (143)
-
rubygems
/ package / tar _ header (220) -
rubygems
/ package / tar _ reader / entry (11) -
rubygems
/ remote _ fetcher (33) - shell (12)
-
shell
/ command-processor (42) -
shell
/ filter (12) - uri (11)
-
webrick
/ httprequest (33) -
webrick
/ httpresponse (11) -
webrick
/ httpservlet / abstract (77) -
webrick
/ httputils (11)
クラス
- CGI (22)
-
CSV
:: FieldInfo (11) -
CSV
:: Table (11) -
Gem
:: Package :: TarHeader (220) -
Gem
:: Package :: TarReader :: Entry (11) -
Gem
:: RemoteFetcher (33) -
Net
:: HTTP (407) -
Net
:: HTTPGenericRequest (22) -
Net
:: HTTPResponse (33) -
Net
:: POPMail (11) - OptionParser (143)
- Shell (12)
-
Shell
:: CommandProcessor (42) -
Shell
:: Filter (12) -
URI
:: MailTo (11) -
WEBrick
:: HTTPRequest (33) -
WEBrick
:: HTTPResponse (11) -
WEBrick
:: HTTPServlet :: AbstractServlet (77) -
WEBrick
:: HTTPUtils :: FormData (11)
モジュール
- Kernel (253)
-
Net
:: HTTPHeader (451)
キーワード
- == (11)
- [] (44)
- []= (11)
-
add
_ field (11) -
basic
_ auth (11) -
canonical
_ each (11) - cat (6)
-
check
_ signedness (22) -
check
_ sizeof (22) - checksum (11)
- chunked? (11)
-
content
_ length (11) -
content
_ length= (11) -
content
_ range (11) -
content
_ type (11) -
content
_ type= (11) -
convertible
_ int (22) - copy (11)
- delete (22)
- devmajor (11)
- devminor (11)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - each (11)
-
each
_ capitalized (11) -
each
_ capitalized _ name (11) -
each
_ header (11) -
each
_ key (11) -
each
_ name (11) -
each
_ value (11) - echo (6)
- empty? (11)
- fetch (33)
-
fetch
_ path (11) -
find
_ header (11) -
find
_ type (22) -
form
_ data= (11) - get (22)
- get2 (22)
-
get
_ fields (11) - gid (11)
- glob (18)
- gname (11)
-
have
_ header (22) -
have
_ macro (22) -
have
_ struct _ member (22) -
have
_ type (22) - head2 (22)
- header (77)
- headers (11)
- key? (11)
- length (11)
- linkname (11)
- lock (11)
- magic (11)
-
main
_ type (11) - method (11)
- mkcol (11)
- mode (11)
- move (11)
- mtime (11)
- name (11)
-
on
_ head (11) -
on
_ tail (11) -
open
_ uri _ or _ path (11) - out (17)
- parse (22)
- parse! (11)
- patch (22)
- post (22)
- post2 (22)
- prefix (11)
- propfind (11)
- proppatch (11)
-
proxy
_ basic _ auth (11) - put (11)
- put2 (22)
- range (11)
- range= (22)
-
range
_ length (11) -
raw
_ header (11) -
reader
_ header (11) - request (33)
-
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
request
_ put (22) - response (11)
-
response
_ body _ permitted? (11) -
send
_ request (11) - service (11)
-
set
_ content _ type (11) -
set
_ form _ data (11) -
set
_ range (33) - size (22)
-
sub
_ type (11) - summarize (22)
-
summary
_ indent (11) -
summary
_ indent= (11) -
summary
_ width (11) -
summary
_ width= (11) - system (18)
- tee (6)
-
to
_ a (11) -
to
_ s (11) - trace (11)
- transact (6)
-
try
_ constant (22) -
try
_ static _ assert (22) -
try
_ type (22) -
type
_ params (11) - typeflag (11)
- uid (11)
- uname (11)
- unlock (11)
-
update
_ checksum (11) - version (11)
検索結果
先頭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... -
Gem
:: Package :: TarHeader # empty? -> bool (9101.0) -
ヘッダが "\0" で埋められている場合、真を返します。 そうでない場合は、偽を返します。
ヘッダが "\0" で埋められている場合、真を返します。
そうでない場合は、偽を返します。