Skip to content

Latest commit

 

History

59 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

swift-rfc-6265

Development Status

Swift namespace types for RFC 6265: HTTP State Management Mechanism

Overview

This package provides Swift namespace types for HTTP cookies as defined in RFC 6265. This package defines the RFC 6265 namespace enum and Cookie type for extension by parser implementations.

Features

  • ✅ RFC 6265 namespace enum
  • ✅ Cookie type for parser extensions
  • ✅ Swift 6 strict concurrency support
  • ✅ Full Sendable conformance

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/swift-ietf/swift-rfc-6265.git", from: "0.2.2")
]

Add the product to a target that needs it:

.target(
    name: "YourTarget",
    dependencies: [
        .product(name: "RFC 6265", package: "swift-rfc-6265")
    ]
)

Usage

This package provides namespace types that are extended by parser implementations (e.g., swift-url-routing):

import RFC_6265

// Parser implementations extend RFC_6265.Cookie
extension RFC_6265.Cookie {
  public struct Parser<FieldParsers>: ParserPrinter { ... }
}

Related Packages

License

This library is released under the Apache License 2.0. See LICENSE.md for details.

About

Swift implementation of RFC 6265: HTTP State Management Mechanism.

Topics

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Sponsor this project

Contributors

Languages