るりまサーチ

最速Rubyリファレンスマニュアル検索!
72件ヒット [1-72件を表示] (0.027秒)
トップページ > クエリ:host[x] > 種類:ライブラリ[x]

別のキーワード

  1. etc sc_host_name_max
  2. uri host
  3. cgi host
  4. uri host=
  5. generic host

キーワード

検索結果

rdoc/ghost_method (6001.0)

RDoc::GhostMethod を定義するサブライブラリです。

...RDoc::GhostMethod を定義するサブライブラリです。...

net/http (25.0)

汎用データ転送プロトコル HTTP を扱うライブラリです。 実装は 2616 に基きます。

...TTP.start(url.host, url.port) {|http|
http.get('/index.html')
}
puts res.body
//}

//emlist[例4: 上の例よりさらに汎用的な例][ruby]{
require 'net/http'

url = URI.parse('http://www.example.com/index.html')
req = Net::HTTP::Get.new(url.path)
res = Net::HTTP.start(url.host, url.port) {|...
...= Net::HTTP::Post.new(url.path)
req.basic_auth 'jack', 'pass'
req.set_form_data({'from'=>'2005-01-01', 'to'=>'2005-03-31'})
res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
case res
when Net::HTTPSuccess, Net::HTTPRedirection
# OK
else
res.value
end
//}

==== プロク...
...とでプログラムからプロクシを指定することもできます。

//emlist[例][ruby]{
require 'net/http'

proxy_addr = 'your.proxy.host'
proxy_port = 8080

Net::HTTP.new('example.com', nil, proxy_addr, proxy_port).start { |http|
# always proxy via your.proxy.addr:8080
}
//}

プロ...

cgi (13.0)

CGI プログラムの支援ライブラリです。

...* AUTH_TYPE
* CONTENT_LENGTH
* CONTENT_TYPE
* GATEWAY_INTERFACE
* PATH_INFO
* PATH_TRANSLATED
* QUERY_STRING
* REMOTE_ADDR
* REMOTE_HOST
* REMOTE_IDENT
* REMOTE_USER
* REQUEST_METHOD
* SCRIPT_NAME
* SERVER_NAME
* SERVER_PORT
* SERVER_PROTOCOL
* SERVER_SOFTWARE

#conte...
...ます。

* HTTP_ACCEPT
* HTTP_ACCEPT_CHARSET
* HTTP_ACCEPT_ENCODING
* HTTP_ACCEPT_LANGUAGE
* HTTP_CACHE_CONTROL
* HTTP_FROM
* HTTP_HOST
* HTTP_NEGOTIATE
* HTTP_PRAGMA
* HTTP_REFERER
* HTTP_USER_AGENT

CGI に関連する環境変数に関しては
http://www.w3.org/CGI/ も...

rubygems/commands/server_command (7.0)

ローカルにインストールされている Gem パッケージとそのドキュメントを HTTP サーバに 載せて公開するためのライブラリです。

...にします
Summary:
Documentation and gem repository HTTP server
Description:
The server command starts up a web server that hosts the RDoc for your
installed gems and can operate as a server for installation of gems on other
machines.

The cache files f...
...or installed gems must exist to use the server as a source
for gem installation.

To install gems from a running server, use `gem install GEMNAME --source
http://gem_server_host:8808`
Defaults:
--port 8808 --dir /usr/lib/ruby/gems/1.8 --no-daemon...

socket (7.0)

socket はプロセス外部との通信 (プロセス間通信、ホスト間通信) を実現します。

...フェース (Socket) で用いられます。

====[a:host_format] ホスト指定形式

AF_INET なソケットにおいてホストを指定するには以下のいずれか
の形式を指定します。

* ホスト名 (例: "localhost")
* octet decimalによるIPアドレス(文字列) (...
...g.org:http)>]
* IPSocket.getaddress("www.ruby-lang.org") => "210.163.138.100"
* TCPSocket.gethostbyname("www.ruby-lang.org") => ["beryllium.ruby-lang.org", [], 2, "210.163.138.100"]
* Socket.gethostbyname("www.ruby-lang.org") => ["beryllium.ruby-lang.org", [], 2, "\322\243\212d"]
* Socket.ge...
...うメソッドは以下のものが用意されています。

* Socket.getnameinfo([nil, nil, nil, "210.163.138.100"]) => ["beryllium.ruby-lang.org", 0]
* Addrinfo#getnameinfo Addrinfo.ip("127.0.0.1").getnameinfo => ["localhost", "0"]


また、resolv ライブラリも使用できます。...

絞り込み条件を変える

webrick/cgi (7.0)

一般の CGI 環境で webrick ライブラリのサーブレットと同じように CGI スクリプトを書くための ライブラリです。サーバが WEBrick でなくても使うことが出来ます。

...class MyCGI < WEBrick::CGI
def do_GET(req, res)
req.content_length
req.content_type
req.path_info
req.query_string
req.peeraddr
req.host
req.user
req.request_method
req.script_name
req.port
end
end
MyCGI.new.start()

=== リンク

* 3875...