ライブラリ
-
cgi
/ core (24) - csv (36)
- mkmf (48)
-
net
/ http (552) - psych (24)
-
rubygems
/ package / tar _ header (12) -
webrick
/ httpresponse (12)
クラス
- CGI (24)
- CSV (36)
-
Gem
:: Package :: TarHeader (12) -
Net
:: HTTP (420) -
Net
:: HTTPResponse (36) -
Psych
:: Nodes :: Node (24) -
WEBrick
:: HTTPResponse (12)
モジュール
- Kernel (48)
-
Net
:: HTTPHeader (96)
キーワード
-
canonical
_ each (12) -
content
_ length (12) -
content
_ length= (12) -
content
_ range (12) -
content
_ type (12) -
content
_ type= (12) - convert (36)
-
convertible
_ int (24) - copy (12)
- delete (12)
-
each
_ capitalized (12) - get (24)
- get2 (24)
- head (12)
- head2 (24)
- lock (12)
- mkcol (12)
- move (12)
- out (12)
- patch (24)
- post (24)
- post2 (24)
- propfind (12)
- proppatch (12)
- put (12)
- put2 (24)
-
reader
_ header (12) -
request
_ get (24) -
request
_ head (24) -
request
_ post (24) -
request
_ put (24) - response (12)
-
send
_ request (12) -
set
_ content _ type (12) -
to
_ yaml (12) - trace (12)
-
try
_ constant (24) - unlock (12)
- version (12)
- yaml (12)
検索結果
先頭5件
-
Net
:: HTTPResponse # header -> self (24103.0) -
互換性を保つためだけに導入されたメソッドです。 使わないでください。
互換性を保つためだけに導入されたメソッドです。
使わないでください。
自分自身を返します。 -
WEBrick
:: HTTPResponse # header -> Hash (24102.0) -
ヘッダ名をキー、ヘッダの値を値とするハッシュを返します。ハッシュのキーも値も文字列です。
ヘッダ名をキー、ヘッダの値を値とするハッシュを返します。ハッシュのキーも値も文字列です。 -
CGI
# header(options = "text / html") -> String (18338.0) -
HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。
...HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。
CGI#out を使わずに自力で HTML を出力したい場合などに使います。
このメソッドは文字列エンコーディングを変換しません。
ヘッダのキ......下が利用可能です。
: type
Content-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真ならば、HTTP のバージョン、ステータス......Date ヘッダをセットします。また Server と Connection の各ヘッダにもデフォルト値をセットします。
偽を指定する場合は、これらの値を明示的にセットしてください。
: status
HTTP のステータスコードを指定します。
この... -
Net
:: HTTPHeader # content _ type=(type) (15301.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 = {}) (15301.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
:: HTTPResponse # response -> self (15203.0) -
互換性を保つためだけに導入されたメソッドです。 使わないでください。
互換性を保つためだけに導入されたメソッドです。
使わないでください。
自分自身を返します。 -
Net
:: HTTPHeader # content _ type -> String|nil (15201.0) -
"text/html" のような Content-Type を表す 文字列を返します。
...のような Content-Type を表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/comments.cgi?post=comment')
req = Net::HTTP::Post.new(uri.re......quest_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTP # options(path , initheader = nil) -> Net :: HTTPResponse (12401.0) -
サーバの path に OPTIONS リクエストを ヘッダが initheader として送り、 レスポンスを Net::HTTPResponse のオブジェクト で返します。
...サーバの path に OPTIONS リクエストを
ヘッダが initheader として送り、
レスポンスを Net::HTTPResponse のオブジェクト
で返します。
@param path リクエストを送るパスを文字列で与えます。
@param initheader リクエストのヘッダを「文......字列=>文字列」の
ハッシュで与えます。
@see Net::HTTP::Options... -
Net
:: HTTPResponse # reader _ header -> self (12103.0) -
互換性を保つためだけに導入されたメソッドです。 使わないでください。
互換性を保つためだけに導入されたメソッドです。
使わないでください。
自分自身を返します。