Skip to content

Cookies in HTTP request #13

@rogelio-o

Description

@rogelio-o

Create method getCookies in HttpRequest that returns an array of cookie objects (that also has to be created).

The cookie object will have the attributes:

  • value: string|object
  • expires: date
  • path: string

The method will get the values of the Cookie header. For the value, there are some considerations:

  • If the value starts with j:, it will be a JSON parsed object.
  • If the value starts with s:, it will be a signed value (with the app configured secret).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions