Skip to content
This repository was archived by the owner on May 27, 2025. It is now read-only.

Releases: grdsdev/swift-http

0.4.0

04 Apr 13:40

Choose a tag to compare

Changes

  • Rename from Fetch to HTTP

Full Changelog: 0.3.0...0.4.0

0.3.0

23 Jan 11:37

Choose a tag to compare

Changes

  • Add FetchMock type for helping to write mocks
  • Add new HTTPHeaders type for case-insensitive HTTP headers
  • Add new static types for HTTP methods, and HTTP body
  • Improvements on URLSearchParams
    • Better handling or URL encoding/decoding
    • Accept only String values

Full Changelog: 0.2.0...0.3.0

0.2.0

13 Jan 16:59

Choose a tag to compare

Changes

  • Specifies minimum support for platforms: iOS 13, mac Catalyst 13, macOS 10.15, watchOS 6, and tvOS 13.
  • Make RequestOptions's body property mutable, and change its type to (any Sendable)?, to allow it to be easily mutated.
  • Remove bytes convenience methods, use Data instead.
  • Cache collected Data in Response's Body to allow multiple responses, as:
let response = try await fetch(...)

let json = try await response.json()
let text = try await response.text()

Full Changelog: 0.1.1...0.2.0

0.1.1

10 Jan 10:26

Choose a tag to compare

Changes

  • Make Request mutable
  • Add support for Swift 5.9 and 5.10

Full Changelog: 0.1.0...0.1.1

0.1.0

09 Jan 11:09
58a27a8

Choose a tag to compare