Skip to content

Commit

Permalink
Package update
Browse files Browse the repository at this point in the history
* Updated the package to include HTTPExtra
* Updated the HTTPExtra documentation
  • Loading branch information
Craz1k0ek committed Oct 21, 2023
1 parent 40c34a0 commit 8c2498d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/HTTPExtra.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Some of the `URLSession` objects have been made available for use by the `HTTPSe
Both the `URL` object as well as the `URLRequest` object are now conform `HTTPRequestConvertible`.
This allows you to easily get started with the HTTP package, wihtout major changes.

For the responses we've wrapped both `Data` and `String`.
For the responses we've made both `Data` and `String` conform to `HTTPResponseConvertible`.
The latter one attempts to use the text encoding of the response during decoding.
If the encoding is missing, UTF-8 is assumed.

Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import PackageDescription
let package = Package(
name: "HTTP",
products: [
.library(name: "HTTP", targets: ["HTTP"]),
.library(name: "HTTP", targets: ["HTTP", "HTTPExtra"]),
],
targets: [
.target(name: "HTTP"),
Expand Down

0 comments on commit 8c2498d

Please sign in to comment.