HTTP::Cookie

class HTTP::Cookie

Overview

Represents a cookie with all its attributes. Provides convenient access and modification of them.

Defined in:

http/cookie.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.new(name : String, value : String, path : String = "/", expires : Time? = nil, domain : String? = nil, secure : Bool = false, http_only : Bool = false, extension : String? = nil)Source

Instance Method Detail

def ==(other : self)

def domain : String?Source

def domain=(domain : String?)Source

def expired?Source

def expires : Time?Source

def expires=(expires : Time?)Source

def extension : String?Source

def extension=(extension : String?)Source

def hash

def http_only : BoolSource

def http_only=(http_only : Bool)Source

def name : StringSource

def name=(name : String)Source

def path : StringSource

def path=(path : String)Source

def secure : BoolSource

def secure=(secure : Bool)Source

def to_cookie_headerSource

def to_set_cookie_headerSource

def value : StringSource

def value=(value : String)Source

© 2012–2017 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.22.0/HTTP/Cookie.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部