1243件ヒット
[1201-1243件を表示]
(0.109秒)
ライブラリ
- ビルトイン (11)
-
cgi
/ core (33) -
cgi
/ html (22) -
net
/ http (418) -
net
/ imap (594) -
rdoc
/ context (11) -
webrick
/ httprequest (22) -
webrick
/ httpresponse (66) -
webrick
/ httpservlet / abstract (66)
クラス
- CGI (22)
- Class (11)
-
Net
:: HTTP (297) -
Net
:: HTTPGenericRequest (77) -
Net
:: HTTPResponse (44) -
Net
:: IMAP (11) -
Net
:: IMAP :: BodyTypeBasic (143) -
Net
:: IMAP :: BodyTypeMessage (176) -
Net
:: IMAP :: BodyTypeMultipart (99) -
Net
:: IMAP :: BodyTypeText (154) -
Net
:: IMAP :: FetchData (11) -
RDoc
:: Context :: Section (11) -
WEBrick
:: HTTPRequest (22) -
WEBrick
:: HTTPResponse (66) -
WEBrick
:: HTTPServlet :: AbstractServlet (66)
モジュール
-
CGI
:: HtmlExtension (22) -
CGI
:: QueryExtension (11)
キーワード
- attr (11)
- body= (22)
-
body
_ exist? (11) -
body
_ stream (11) -
body
_ stream= (11) - chunked= (11)
-
content
_ id (33) -
content
_ length (11) -
content
_ length= (11) -
create
_ body (11) - description (33)
- disposition (44)
-
do
_ DELETE (11) -
do
_ GET (11) -
do
_ HEAD (11) -
do
_ OPTIONS (11) -
do
_ POST (11) -
do
_ PUT (11) - encoding (33)
- entity (11)
- envelope (11)
- extension (44)
- fetch (11)
- get (22)
- get2 (22)
- head2 (22)
- header (11)
- html (22)
- inherited (11)
- language (44)
- lines (22)
-
local
_ host= (11) -
local
_ port= (11) - lock (11)
- md5 (33)
-
media
_ subtype (44) -
media
_ type (44) - mkcol (11)
- move (11)
- multipart? (44)
- param (44)
- parts (11)
- patch (22)
- post (22)
- post2 (22)
- print (11)
- propfind (11)
- proppatch (11)
-
read
_ body (22) -
request
_ body _ permitted? (11) -
request
_ get (22) -
request
_ head (22) -
request
_ post (22) -
response
_ body _ permitted? (11) -
send
_ request (11) -
set
_ comment (11) - size (33)
- subtype (44)
-
to
_ s (11) - unlock (11)
検索結果
先頭4件
-
Net
:: HTTP # send _ request(name , path , data = nil , header = nil) -> Net :: HTTPResponse (7.0) -
HTTP リクエストをサーバに送り、そのレスポンスを Net::HTTPResponse のインスタンスとして返します。
...スを文字列で与えます。
@param data リクエストのボディを文字列で与えます。
@param header リクエストのヘッダをハッシュで与えます。
//emlist[例][ruby]{
response = http.send_request('GET', '/index.html')
puts response.body
//}
@see Net::HTTP#request... -
RDoc
:: Context :: Section # set _ comment(comment) -> () (7.0) -
自身にコメントを設定します。
...初の行に :section: を含んでいた場合、その行以降の文字列をコ
メントとして設定します。そうでない場合は comment すべてをコメントとして
設定します。
# ---------------------
# :section: The title
# The body
# ---------------------... -
WEBrick
:: HTTPResponse # chunked=(flag) (7.0) -
真に設定するとクライアントに返す内容(エンティティボディ)を chunk に分けるようになります。
...に分けてクライアントに返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
res.chunked = true
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 09:04:28 GMT... -
WEBrick
:: HTTPResponse # to _ s -> String (7.0) -
実際にクライアントに送られるデータを文字列として返します。
...るデータを文字列として返します。
require 'webrick'
include WEBrick
res = HTTPResponse.new( { :HTTPVersion => "1.1" } )
res.body = 'hoge'
print res.to_s
#=> 出力結果
HTTP/1.1 200 OK
Connection: Keep-Alive
Date: Sat, 27 Oct 2007 08:58:49 GMT
Server:
Content-...