Skip to content

Commit

Permalink
1.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
dankinsoid committed Mar 25, 2024
1 parent 6a833c3 commit f4d2537
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ import PackageDescription
let package = Package(
name: "SomeProject",
dependencies: [
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.1.1")
.package(url: "https://github.com/dankinsoid/swift-api-client.git", from: "1.1.2")
],
targets: [
.target(
Expand Down
12 changes: 6 additions & 6 deletions Sources/SwiftAPIClient/Types/HTTPFields.swift
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public extension HTTPField {

/// Returns an `Authorization` header.
///
/// Alamofire provides built-in methods to produce `Authorization` headers. For a Basic `Authorization` header use
/// swift-api-client provides built-in methods to produce `Authorization` headers. For a Basic `Authorization` header use
/// `HTTPField.authorization(username:password:)`. For a Bearer `Authorization` header, use
/// `HTTPField.authorization(bearerToken:)`.
///
Expand Down Expand Up @@ -75,7 +75,7 @@ public extension HTTPField {

/// Returns a `Content-Type` header.
///
/// All Alamofire `ParameterEncoding`s and `ParameterEncoder`s set the `Content-Type` of the request, so it may not
/// All swift-api-client `ParameterEncoding`s and `ParameterEncoder`s set the `Content-Type` of the request, so it may not
/// be necessary to manually set this value.
///
/// - Parameter value: The `Content-Type` value.
Expand All @@ -98,7 +98,7 @@ public extension HTTPField {

public extension HTTPFields {

/// The default set of `HTTPFields` used by Alamofire. Includes `Accept-Encoding`, `Accept-Language`, and
/// The default set of `HTTPFields` used by swift-api-client. Includes `Accept-Encoding`, `Accept-Language`, and
/// `User-Agent`.
static let `default` = HTTPFields([
.defaultAcceptEncoding,
Expand All @@ -109,7 +109,7 @@ public extension HTTPFields {

public extension HTTPField {

/// Returns Alamofire's default `Accept-Encoding` header, appropriate for the encodings supported by particular OS
/// Returns swift-api-client's default `Accept-Encoding` header, appropriate for the encodings supported by particular OS
/// versions.
///
/// See the [Accept-Encoding HTTP header documentation](https://tools.ietf.org/html/rfc7230#section-4.2.3) .
Expand All @@ -124,13 +124,13 @@ public extension HTTPField {
return HTTPField(name: .acceptEncoding, value: encodings.qualityEncoded())
}()

/// Returns Alamofire's default `Accept-Language` header, generated by querying `Locale` for the user's
/// Returns swift-api-client's default `Accept-Language` header, generated by querying `Locale` for the user's
/// `preferredLanguages`.
///
/// See the [Accept-Language HTTP header documentation](https://tools.ietf.org/html/rfc7231#section-5.3.5).
static let defaultAcceptLanguage = HTTPField(name: .acceptLanguage, value: Locale.preferredLanguages.prefix(6).qualityEncoded())

/// Returns Alamofire's default `User-Agent` header.
/// Returns swift-api-client's default `User-Agent` header.
///
/// See the [User-Agent header documentation](https://tools.ietf.org/html/rfc7231#section-5.5.3).
///
Expand Down

0 comments on commit f4d2537

Please sign in to comment.