るりまサーチ

最速Rubyリファレンスマニュアル検索!
132件ヒット [1-100件を表示] (0.133秒)
トップページ > クエリ:-[x] > クエリ:expires[x]

別のキーワード

  1. _builtin -
  2. open-uri open
  3. irb/input-method new
  4. irb/input-method gets
  5. matrix -

ライブラリ

クラス

キーワード

検索結果

<< 1 2 > >>

Rinda::TupleEntry#expires -> Time (18207.0)

タプルの期限切れの時刻を返します。

...タプルの期限切れの時刻を返します。

有効期限を無限に指定した場合、この時刻は Time.at(2**31-1)、つまり
Tue Jan 19 03:14:07 GMT Standard Time 2038 を返します。

@see Rinda::TupleEntry#expire...

WEBrick::Cookie#expires -> Time (18202.0)

有効期限を Timeオブジェクトで表すアクセサです。

有効期限を Timeオブジェクトで表すアクセサです。

@param value 有効期限を Time オブジェクトまたは文字列を指定します。

CGI::Cookie#expires -> Time (18201.0)

クッキーの有効期限を返します。

クッキーの有効期限を返します。

CGI#header(options = "text/html") -> String (196.0)

HTTP ヘッダを options に従って生成します。 CGI#out と違い、標準出力には出力しません。 CGI#out を使わずに自力で HTML を出力したい場合などに使います。 このメソッドは文字列エンコーディングを変換しません。

...ん。

ヘッダのキーとしては以下が利用可能です。

: type
Content-Type ヘッダです。デフォルトは "text/html" です。
: charset
ボディのキャラクタセットを Content-Type ヘッダに追加します。
: nph
真偽値を指定します。真ならば、...
...す。Content-Length ヘッダに対応します。
: language
送信するコンテンツの言語を指定します。Content-Language ヘッダに対応します。
: expires
送信するコンテンツの有効期限を Time のインスタンスで指定します。
Expires
ヘッダに...
...Set-Cookie ヘッダに対応します。

status パラメータには以下の文字列が使えます。

"OK" --> "200 OK"
"PARTIAL_CONTENT" --> "206 Partial Content"
"MULTIPLE_CHOICES" --> "300 Multiple Choices"
"MOVED" --> "...

CGI::Cookie.new(name = "", *value) -> CGI::Cookie (130.0)

クッキーオブジェクトを作成します。

...この CGI スクリプトのベースディレクトリです。
: domain
このクッキーを適用するドメインを指定します。
: expires
このクッキーの有効期限を Time のインスタンスで指定します。
: secure
真を指定すると、このクッキーはセ...
...'path' => 'path', # optional
'domain' => 'domain', # optional
'expires' => Time.now, # optional
'secure' => true # optional
'httponly'...
...ain
expires
= cookie1.expires
secure = cookie1.secure
httponly = cookie1.httponly

cookie1.name = 'name'
cookie1.value = ['value1', 'value2', ...]
cookie1.path = 'path'
cookie1.domain = 'domain'
cookie1.expires...

絞り込み条件を変える

CGI::Session.new(request, option = {}) -> CGI::Session (106.0)

セッションオブジェクトを新しく作成し返します。

...tore, CGI::Session::MemoryStore,
CGI::Session::PStore を提供しています。デフォルトは CGI::Session::FileStore です。

: session_expires
セッションの有効期間。
Time オブジェクトを与えると、セッションはその日時まで破棄されずに残り...

Rinda::TupleEntry#expired? -> bool (106.0)

タプルが既に期限切れになっているならば真を返します。

...タプルが既に期限切れになっているならば真を返します。

@see Rinda::TupleEntry#expires, @see Rinda::TupleEntry#renew...

Rinda::TupleEntry#renew(sec_or_renewer) -> () (106.0)

タプルの有効期限を更新します。

...によって以下のように更新されます。
* nil : 遠い未来(実質的に無限)を指定します。詳しくは Rinda::TupleEntry#expires 参照
* true : 直ちに有効期限切れになるよう指定します
* 数値 : 有効期限を現在から sec_or_renewer 秒後に指...

CGI#out(options = "text/html") { .... } (78.0)

HTTP ヘッダと、ブロックで与えられた文字列を標準出力に出力します。

...に出力します。

HEADリクエスト (REQUEST_METHOD == "HEAD") の場合は HTTP ヘッダのみを出力します。

charset が "iso-2022-jp"・"euc-jp"・"shift_jis" のいずれかで
ある場合は文字列エンコーディングを自動変換し、language を "ja"にします。

@...
...cgi = CGI.new
cgi.out{ "string" }
# Content-Type: text/html
# Content-Length: 6
#
# string

cgi.out("text/plain"){ "string" }
# Content-Type: text/plain
# Content-Length: 6
#
# string

cgi.out({"n...
..."type" => "text/html",
"charset" => "iso-2022-jp",
# Content-Type: text/html; charset=iso-2022-jp
"language" => "ja",
"expires" => Time.now + (3600 * 24 * 30),
"cookie" => [cookie1,...

cgi (48.0)

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

...リです。

CGI プロトコルの詳細については以下の文書を参照してください。

* https://tools.ietf.org/html/draft-coar-cgi-v11-03
* 3875: The Common Gateway Interface (CGI) Version 1.1
* https://www.w3.org/CGI/

=== 使用例

==== フォームフィールドの値を...
...cgi = CGI.new
for name, cookie in cgi.cookies
cookie.expires = Time.now + 30
end
cgi.out("cookie" => cgi.cookies){"string"}

cgi.cookies # { "name1" => cookie1, "name2" => cookie2, ... }

require "cgi"
cgi = CGI.new
cgi.cookies['name'].expires = Time.now + 30
cgi.out("cookie" => cgi.cookies['name'...
...ams: " + cgi.params.inspect + "\n" +
"cookies: " + cgi.cookies.inspect + "\n" +
ENV.collect() do |key, value|
key + " --> " + value + "\n"
end.join("")
)
end
end
end
end

# HTML生成メソッドを追加
CGI.new("html3") # html3.2
CGI...

絞り込み条件を変える

<< 1 2 > >>