110件ヒット
[101-110件を表示]
(0.115秒)
ライブラリ
-
net
/ http (59) -
rexml
/ document (14) -
rubygems
/ remote _ fetcher (2) - socket (4)
-
webrick
/ cgi (1) -
webrick
/ httpauth / htdigest (1) -
webrick
/ httpauth / htpasswd (1) -
webrick
/ httpauth / userdb (1) -
webrick
/ httprequest (2) -
webrick
/ httpservlet / abstract (7) -
webrick
/ httpservlet / cgihandler (2) -
webrick
/ httpservlet / erbhandler (2) -
webrick
/ httpservlet / filehandler (3) -
webrick
/ httpservlet / prochandler (3) -
webrick
/ httputils (8)
クラス
- Addrinfo (2)
-
Gem
:: RemoteFetcher (2) -
Net
:: HTTP (15) -
Net
:: HTTPGenericRequest (3) -
Net
:: HTTPResponse (9) -
REXML
:: Attribute (1) -
REXML
:: Attributes (12) -
REXML
:: Element (1) - Socket (2)
-
WEBrick
:: CGI (1) -
WEBrick
:: HTTPAuth :: Htdigest (1) -
WEBrick
:: HTTPAuth :: Htpasswd (1) -
WEBrick
:: HTTPRequest (2) -
WEBrick
:: HTTPServlet :: AbstractServlet (7) -
WEBrick
:: HTTPServlet :: CGIHandler (2) -
WEBrick
:: HTTPServlet :: DefaultFileHandler (2) -
WEBrick
:: HTTPServlet :: ERBHandler (2) -
WEBrick
:: HTTPServlet :: FileHandler (1) -
WEBrick
:: HTTPServlet :: ProcHandler (3) -
WEBrick
:: HTTPUtils :: FormData (8)
モジュール
-
Net
:: HTTPExceptions (1) -
Net
:: HTTPHeader (31) -
WEBrick
:: HTTPAuth :: UserDB (1)
キーワード
- [] (3)
- []= (2)
-
add
_ field (1) - attribute (1)
-
basic
_ auth (1) - body (1)
- chunked? (1)
- code (1)
- connect (1)
-
connect
_ from (2) -
connect
_ nonblock (1) -
content
_ length (1) -
content
_ length= (1) -
content
_ range (1) -
content
_ type= (1) - delete (2)
-
delete
_ all (1) -
do
_ DELETE (1) -
do
_ GET (6) -
do
_ HEAD (1) -
do
_ OPTIONS (1) -
do
_ POST (4) -
do
_ PUT (1) - each (2)
-
each
_ attribute (1) -
each
_ capitalized _ name (1) -
each
_ data (1) -
each
_ header (1) -
each
_ key (1) -
each
_ name (1) -
each
_ value (1) - entity (1)
- fetch (3)
- filename (1)
- filename= (1)
-
form
_ data= (1) - get2 (2)
-
get
_ attribute (1) -
get
_ attribute _ ns (1) -
get
_ fields (1) -
get
_ instance (1) -
get
_ passwd (3) -
get
_ proxy _ from _ env (1) - head2 (2)
-
http
_ version (1) - key? (1)
- length (1)
- list (1)
-
local
_ host= (1) -
local
_ port= (1) -
main
_ type (1) -
make
_ partial _ content (1) - method (2)
- msg (1)
- name (1)
- name= (1)
- namespace (1)
- namespaces (1)
- path (1)
- prefixes (1)
-
proxy
_ basic _ auth (1) - range (1)
-
range
_ length (1) -
read
_ body (2) - request (3)
-
request
_ get (2) -
request
_ head (2) -
request
_ line (1) -
request
_ method (1) - response (1)
-
response
_ body _ permitted? (1) -
send
_ request (1) - service (2)
-
set
_ content _ type (1) -
set
_ form _ data (1) - size (1)
-
sub
_ type (1) -
to
_ ary (1) -
type
_ params (1) - value (1)
検索結果
先頭5件
-
REXML
:: Attributes # []=(name , value) (58.0) -
指定した属性を更新します。
指定した属性を更新します。
name で属性の名前を、value で値を更新します。
既に同じ名前の属性がある場合は上書きされ、
そうでない場合は属性が追加されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EO... -
REXML
:: Attributes # delete _ all(name) -> [REXML :: Attribute] (58.0) -
name という名前を持つ属性をすべて削除します。
name という名前を持つ属性をすべて削除します。
削除された属性を配列で返します。
@param name 削除する属性の名前
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<-EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elem... -
REXML
:: Attributes # each {|name , value| . . . } -> () (58.0) -
各属性の名前と値に対しブロックを呼び出します。
各属性の名前と値に対しブロックを呼び出します。
名前には expanded_name(REXML::Namespace#exapnded_name)が
渡されます。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a... -
REXML
:: Attributes # length -> Integer (58.0) -
属性の個数を返します。
属性の個数を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}
... -
REXML
:: Attributes # prefixes -> [String] (58.0) -
self の中で宣言されている prefix の集合を 文字列の配列で返します。
self の中で宣言されている prefix の集合を
文字列の配列で返します。
self が属する要素より上位の要素で定義されているものは含みません。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc... -
REXML
:: Attributes # size -> Integer (58.0) -
属性の個数を返します。
属性の個数を返します。
//emlist[][ruby]{
require 'rexml/document'
doc = REXML::Document.new(<<EOS)
<root xmlns:foo="http://example.org/foo"
xmlns:bar="http://example.org/bar">
<a foo:att='1' bar:att='2' att='<'/>
</root>
EOS
a = doc.get_elements("/root/a").first
p a.attributes.length # => 3
//}
... -
Addrinfo
# connect _ from(host , port) -> Socket (40.0) -
引数で指定されたアドレスから 自身のアドレスへソケットを接続します。
引数で指定されたアドレスから
自身のアドレスへソケットを接続します。
接続元のアドレスは Addrinfo#family_addrinfo により生成された
ものが用いられます。
ブロックが渡されたときにはそのブロックに接続済み Socket
オブジェクトが渡されます。ブロックの返り値がメソッドの返り値となります。
ブロックを省略した場合は、接続済みSocket
オブジェクトが返されます。
引数で指定したアドレスはソケット接続のローカル側のアドレスになります。
require 'socket'
Addrinfo.tcp("www.ruby-lang.org", 80).co... -
Addrinfo
# connect _ from(host , port) {|sock| . . . } -> object (40.0) -
引数で指定されたアドレスから 自身のアドレスへソケットを接続します。
引数で指定されたアドレスから
自身のアドレスへソケットを接続します。
接続元のアドレスは Addrinfo#family_addrinfo により生成された
ものが用いられます。
ブロックが渡されたときにはそのブロックに接続済み Socket
オブジェクトが渡されます。ブロックの返り値がメソッドの返り値となります。
ブロックを省略した場合は、接続済みSocket
オブジェクトが返されます。
引数で指定したアドレスはソケット接続のローカル側のアドレスになります。
require 'socket'
Addrinfo.tcp("www.ruby-lang.org", 80).co... -
Socket
# connect(server _ sockaddr) -> 0 (40.0) -
connect(2) でソケットを接続します。
connect(2) でソケットを接続します。
server_sockaddr は、
lib:socket#pack_string
もしくは Addrinfo オブジェクト
です。
0 を返します。
@param server_sockaddr 接続先アドレス
@raise Errno::EXXX connect(2) がエラーを報告した場合に発生します。詳しくは
man を参照してください。
たとえば IPv4 の TCP ソケットを生成し、connect で www.ruby-lang.org:80 に接続するには以下のようにします。
例:
require... -
Socket
# connect _ nonblock(server _ sockaddr) -> 0 (40.0) -
ソケットをノンブロッキングモードに設定した後、 connect(2) を呼び出します。
ソケットをノンブロッキングモードに設定した後、
connect(2) を呼び出します。
引数、返り値は Socket#connect と同じです。
connect が EINPROGRESS エラーを報告した場合、その例外(Errno::EINPROGRESS)
には IO::WaitWritable が Object#extend されます。
これを connect_nonblock をリトライするために使うことができます。
# Pull down Google's web page
require 'socket'
include Socket::Constants
...