swift-http-types icon indicating copy to clipboard operation
swift-http-types copied to clipboard

Version-independent HTTP currency types for Swift

Results 15 swift-http-types issues
Sort by recently updated
recently updated
newest added

This pull request supports other URLSession methods: - `URLSession.data(for:)` - `URLSession.upload(for:from:)` - `URLSession.upload(for:fromFile:)` It allows to use this package with macOS 10.15, iOS 13.0, watchOS 6.0, tvOS 13.0.

Currently order matters when comparing if two `HTTPFields` instances are equal. I'm by no means an expert in HTTP standards but I found this surprising as the interface is very...

There are many use cases where you may want to store some metadata on the request or even response (for example storing a request ID or a trace ID for...

enhancement

Vapor supports some nice hard-typed APIs that let users interact with some header fields in a convenient manner. For example, consider the following: ```swift import Vapor /// `Vapor` exports `NIOHTTP1`...

enhancement

As April 1st is right around the corner, I recognised that this repo lacked support for responses detailed in [RFC 2324](https://www.rfc-editor.org/rfc/rfc2324) ☕️

That seems not supported yet?

enhancement

Hello, This issue is a feature request for a new API in the HTTPTypesFoundation module: ```swift extension HTTPRequest { public func url(baseURL: URL) -> URL? } ``` --- I met...

enhancement

In current implementation (0.2.1), after you set a combined field value via the plain subscript method, you will get the combined value from raw subscript method too: ```swift var fields...

question

I noticed that this library [uses CoreFoundation directly](https://github.com/apple/swift-http-types/blob/39661f4ca82db8ad050cc060a471c8e2c542b24f/Sources/HTTPTypesFoundation/HTTPRequest%2BURL.swift#L15). IIRC that is not portable; CF is available on Darwin platforms and Linux, but is deliberately omitted from other platforms (e.g. Windows)....

enhancement

Refactors existing XCTest-based unit tests to use Swift Testing. Updates test structure with `@Suite` and `@Test` attributes, replaces `XCTAssert` calls with `#expect` macro, replaces `XCTUnwrap` calls with `#require` macro, and...