Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adds Set-Cookie method to the HTTP transport. #3353

Merged
merged 1 commit into from
Jun 27, 2024
Merged

Conversation

tonybase
Copy link
Member

@tonybase tonybase commented Jun 21, 2024

cookie := http.Cookie{
        Name:     "exampleCookie",
        Value:    "Hello world!",
        Path:     "/",
        MaxAge:   3600,
        HttpOnly: true,
        Secure:   true,
        SameSite: http.SameSiteLaxMode,
    }
 // Use the http.SetCookie() function to send the cookie to the client.
http.SetCookie(ctx, cookie)

@dosubot dosubot bot added the size:S This PR changes 10-29 lines, ignoring generated files. label Jun 21, 2024
@dosubot dosubot bot added the LGTM label Jun 25, 2024
@tonybase tonybase merged commit 3198e0b into main Jun 27, 2024
63 checks passed
@tonybase tonybase deleted the http/set-cookie branch June 27, 2024 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
LGTM size:S This PR changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants