Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bowbahdoe/microhttp-setcookie

Utility for producing a Set-Cookie header
https://github.com/bowbahdoe/microhttp-setcookie

Last synced: 7 days ago
JSON representation

Utility for producing a Set-Cookie header

Awesome Lists containing this project

README

        

# microhttp-setcookie

Utility for producing a Set-Cookie header

## Dependency Information

### Maven

```xml

dev.mccue
microhttp-setcookie
2024.04.20

```

### Gradle

```groovy
dependencies {
implementation('dev.mccue:microhttp-setcookie:2024.04.20')
}
```

## Usage

```java
Header header = SetCookieHeader.of("name", "value");
Header otherHeader = SetCookieHeader.builder("name2", "value2")
.sameSite(SameSite.STRICT)
.secure(true)
.build();
```