Skip to content

Backend: Add Cookie method to Handler#515

Merged
ao-david merged 1 commit intomainfrom
backend-cookies
Mar 17, 2025
Merged

Backend: Add Cookie method to Handler#515
ao-david merged 1 commit intomainfrom
backend-cookies

Conversation

@ao-david
Copy link
Member

@ao-david ao-david commented Mar 4, 2025

This change allows users of the Handler interface to access cookies on the requests.

@ao-david ao-david self-assigned this Mar 4, 2025
// Save saves the passed Session to the session store.
SaveSession(Session) error

Cookie(string) string
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe comment

return nil
}

func (h *FiberHandler) Cookie(key string) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment

return h.store.Save(h.r, h.w, gs.session)
}

func (h *NetHandler) Cookie(id string) string {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment

This change allows users of the Handler interface to access cookies on the requests.
@ao-david ao-david merged commit eaf4f3e into main Mar 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants