216件ヒット
[201-216件を表示]
(0.032秒)
別のキーワード
クラス
- MatchData (24)
-
Net
:: HTTP (72) -
Net
:: HTTPGenericRequest (84) -
RubyVM
:: InstructionSequence (12) - StringScanner (12)
モジュール
-
Net
:: HTTPHeader (12)
キーワード
- body (12)
- body= (12)
-
body
_ stream (12) -
body
_ stream= (12) -
content
_ type (12) - method (12)
- post2 (24)
-
post
_ match (24) -
pre
_ match (12) -
request
_ body _ permitted? (12) -
request
_ post (24) -
response
_ body _ permitted? (12) -
to
_ a (12)
検索結果
-
Net
:: HTTPHeader # content _ type -> String|nil (19.0) -
"text/html" のような 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.request_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.... -
MatchData
# pre _ match -> String (13.0) -
マッチした部分より前の文字列を返します($`と同じ)。
...マッチした部分より前の文字列を返します($`と同じ)。
//emlist[例][ruby]{
/(bar)(BAZ)?/ =~ "foobarbaz"
p $~.pre_match # => "foo"
//}
@see MatchData#post_match...