Skip to content

Conversation

@pooja-bruno
Copy link
Collaborator

@pooja-bruno pooja-bruno commented Apr 21, 2025

Description

Added cookie helper functions to Bruno scripts via the bru.cookies API. This provides similar functionality to Postman's pm.cookies API, making it easier for users to work with cookies in their scripts.

Features added:

  • bru.cookies.get() - Returns all cookies as an object
  • bru.cookies.get("cookieName") - Gets a specific cookie by name
  • bru.cookies.has("cookieName") - Checks if a specific cookie exists

JIRA

Contribution Checklist:

  • The pull request only addresses one issue or adds one feature.
  • The pull request does not introduce any breaking changes
  • I have added screenshots or gifs to help explain the change if applicable.
  • I have read the contribution guidelines.
  • Create an issue and link to the pull request.
Screen.Recording.2025-05-12.at.12.32.32.PM.mov

@anusree-bruno anusree-bruno mentioned this pull request Apr 22, 2025
6 tasks
@helloanoop
Copy link
Contributor

@pooja-bruno Can you add some tests to our CLI to verify this?
You can use https://httpbin.org/#/Cookies to test

@pull-request-size pull-request-size bot added size/L and removed size/XL labels Jun 6, 2025
@pooja-bruno pooja-bruno requested a review from naman-bruno June 6, 2025 08:16
naman-bruno
naman-bruno previously approved these changes Jun 12, 2025
@pooja-bruno pooja-bruno marked this pull request as draft July 15, 2025 08:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants