560件ヒット
[1-100件を表示]
(0.162秒)
ライブラリ
- csv (12)
-
fiddle
/ import (24) - mkmf (72)
-
net
/ ftp (20) -
net
/ http (120) - open-uri (60)
- optparse (12)
-
rexml
/ document (96) - socket (108)
-
webrick
/ httpresponse (12) -
webrick
/ httputils (12) - win32ole (12)
クラス
- Addrinfo (12)
- CSV (12)
-
Net
:: FTP (20) -
Net
:: HTTP (12) - OptionParser (12)
-
REXML
:: DocType (72) -
REXML
:: Instruction (24) -
Socket
:: AncillaryData (96) -
WEBrick
:: HTTPResponse (12) -
WEBrick
:: HTTPUtils :: FormData (12) -
WIN32OLE
_ TYPE (12)
モジュール
-
Fiddle
:: Importer (24) - Kernel (72)
-
Net
:: HTTPHeader (108) -
OpenURI
:: Meta (48) -
OpenURI
:: OpenRead (12)
キーワード
- [] (12)
- []= (12)
-
attribute
_ of (12) -
attributes
_ of (12) - charset (24)
-
check
_ sizeof (24) -
cmsg
_ is? (12) - content (12)
-
content
_ type (24) -
content
_ type= (12) -
create
_ value (12) - data (12)
-
default
_ event _ sources (12) -
external
_ id (12) -
form
_ data= (12) -
have
_ struct _ member (24) -
have
_ type (24) - head (12)
- inspect (12)
-
ip
_ pktinfo (12) -
ipv6
_ pktinfo (12) -
ipv6
_ pktinfo _ addr (12) -
ipv6
_ pktinfo _ ifindex (12) - key? (12)
-
main
_ type (12) - mlsd (20)
- public (12)
- read (12)
- reject (12)
-
set
_ content _ type (12) -
set
_ form _ data (12) - socktype (12)
-
sub
_ type (12) - system (12)
- target (12)
-
type
_ params (12) -
unix
_ rights (12) - value (12)
- write (12)
検索結果
先頭5件
-
Socket
:: AncillaryData # type -> Integer (24236.0) -
自身が保持している cmsg type (種類) を返します。
...自身が保持している cmsg type (種類) を返します。
require 'socket'
p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "").type
#=> 2
@see Socket::AncillaryData.new... -
OpenURI
:: Meta # content _ type -> String (15268.0) -
対象となるリソースの Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。 Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
...の Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/h......Content-Type を文字列で返します。Content-Type ヘッダの情報が使われます。
Content-Type ヘッダがない場合は、"application/octet-stream" を返します。
//emlist[例][ruby]{
require 'open-uri'
URI.open('http://www.ruby-lang.org/') {|f|
p f.content_type #=> "text/... -
Net
:: HTTPHeader # content _ type=(type) (12467.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 = {}) (12467.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"
//}... -
Kernel
# have _ type(type , headers = nil , opt = "") -> bool (12463.0) -
静的な型 type がシステムに存在するかどうか検査します。
...静的な型 type がシステムに存在するかどうか検査します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DHAVE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例え......uire 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラ... -
Kernel
# have _ type(type , headers = nil , opt = "") { . . . } -> bool (12463.0) -
静的な型 type がシステムに存在するかどうか検査します。
...静的な型 type がシステムに存在するかどうか検査します。
型 type がシステムに存在する場合は、グローバル変数 $defs に
"-DHAVE_type" を追加し、真を返します。型 type がシステムに存在しない場
合は、偽を返します。
例え......uire 'mkmf'
have_type('foo') # => true
である場合、HAVE_TYPE_FOO をというプリプロセッサマクロをコンパイラに渡します。
@param type 検査したい型の名前を指定します。
@param headers 追加のヘッダを指定します。
@param opt コンパイラ... -
Net
:: HTTPHeader # content _ type -> String|nil (12248.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.reques......t_uri)
req.content_type # => nil
req.content_type = 'multipart/form-data'
req.content_type # => "multipart/form-data"
//}... -
Net
:: HTTPHeader # type _ params -> Hash (12236.0) -
Content-Type のパラメータを {"charset" => "iso-2022-jp"} という形の Hash で返します。
...Content-Type のパラメータを {"charset" => "iso-2022-jp"}
という形の Hash で返します。
Content-Type: ヘッダフィールドが存在しない場合には
空のハッシュを返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.h......tml')
res = Net::HTTP.get_response(uri)
res.type_params # => {"charset"=>"UTF-8"}
//}... -
Net
:: HTTPHeader # main _ type -> String|nil (12220.0) -
"text/html" における "text" のようなタイプを表す 文字列を返します。
...タイプを表す
文字列を返します。
Content-Type: ヘッダフィールドが存在しない場合には nil を返します。
//emlist[例][ruby]{
require 'net/http'
uri = URI.parse('http://www.example.com/index.html')
res = Net::HTTP.get_response(uri)
res.main_type # => "text"
//}...