Name

SPVM::Mojo::Cookie - HTTP cookie base class

Description

Mojo::Cookie class in SPVM an abstract base class for HTTP cookie containers, based on RFC 6265, like Mojo::Cookie::Request and Mojo::Cookie::Response.

Usage

use Mojo::Cookie;

class Mojo::Cookie::MyCookie extends Mojo::Cookie {
  
}

Fields

name

has name : rw string;

Cookie name.

value

has value : rw string;

Cookie value.

Instance Methods

parse

method parse : Mojo::Cookie[] ($string : string);

Parses the string $string into the array of Mojo::Cookie objects, and returns it.

Meant to be overloaded in a child class.

to_string

method to_string : string ();

Renders the cookie to a string and returns it.

Meant to be overloaded in a child class.

Well Known Child Classes

See Also

SPVM::Mojolicious

Copyright & License

Copyright (c) 2025 Yuki Kimoto

MIT License