Skip to content

Commit 1d97d23

Browse files
Updated the style used when referencing RFC documents
1 parent 5bca114 commit 1d97d23

File tree

7 files changed

+11
-11
lines changed

7 files changed

+11
-11
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,10 @@ The `WebPushTesting` module can be used to obtain a mocked `WebPushManager` inst
178178

179179
## Specifications
180180

181-
- [RFC8030 Generic Event Delivery Using HTTP Push](https://datatracker.ietf.org/doc/html/rfc8030)
182-
- [RFC8188 Encrypted Content-Encoding for HTTP](https://datatracker.ietf.org/doc/html/rfc8188)
183-
- [RFC8291 Message Encryption for Web Push](https://datatracker.ietf.org/doc/html/rfc8291)
184-
- [RFC8292 Voluntary Application Server Identification (VAPID) for Web Push](https://datatracker.ietf.org/doc/html/rfc8292)
181+
- [RFC 8030 Generic Event Delivery Using HTTP Push](https://datatracker.ietf.org/doc/html/rfc8030)
182+
- [RFC 8188 Encrypted Content-Encoding for HTTP](https://datatracker.ietf.org/doc/html/rfc8188)
183+
- [RFC 8291 Message Encryption for Web Push](https://datatracker.ietf.org/doc/html/rfc8291)
184+
- [RFC 8292 Voluntary Application Server Identification (VAPID) for Web Push](https://datatracker.ietf.org/doc/html/rfc8292)
185185

186186
## Contributing
187187

Sources/WebPush/Errors/HTTPError.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ import Foundation
1111

1212
/// An unknown HTTP error was encountered.
1313
///
14-
/// - SeeAlso: [RFC8030 Generic Event Delivery Using HTTP Push](https://datatracker.ietf.org/doc/html/rfc8030)
15-
/// - SeeAlso: [RFC8292 Voluntary Application Server Identification (VAPID) for Web Push](https://datatracker.ietf.org/doc/html/rfc8292)
14+
/// - SeeAlso: [RFC 8030 Generic Event Delivery Using HTTP Push](https://datatracker.ietf.org/doc/html/rfc8030)
15+
/// - SeeAlso: [RFC 8292 Voluntary Application Server Identification (VAPID) for Web Push](https://datatracker.ietf.org/doc/html/rfc8292)
1616
/// - SeeAlso: [Sending web push notifications in web apps and browsers — Review responses for push notification errors](https://developer.apple.com/documentation/usernotifications/sending-web-push-notifications-in-web-apps-and-browsers#Review-responses-for-push-notification-errors)
1717
public struct HTTPError: LocalizedError {
1818
let response: HTTPClientResponse

Sources/WebPush/Helpers/URL+Origin.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ extension URL {
1313
///
1414
/// This implementation is similar to the [WHATWG Standard](https://url.spec.whatwg.org/#concept-url-origin), except that it uses the unicode form of the host, and is limited to HTTP and HTTPS schemas.
1515
///
16-
/// - SeeAlso: [RFC8292 Voluntary Application Server Identification (VAPID) for Web Push §2. Application Server Self-Identification](https://datatracker.ietf.org/doc/html/rfc8292#section-2)
16+
/// - SeeAlso: [RFC 8292 Voluntary Application Server Identification (VAPID) for Web Push §2. Application Server Self-Identification](https://datatracker.ietf.org/doc/html/rfc8292#section-2)
1717
/// - SeeAlso: [RFC6454 The Web Origin Concept §6.1. Unicode Serialization of an Origin](https://datatracker.ietf.org/doc/html/rfc6454#section-6.1)
1818
var origin: String {
1919
/// Note that we need the unicode variant, which only URLComponents provides.

Sources/WebPush/Subscriber.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public protocol SubscriberProtocol: Sendable {
3131

3232
/// The set of cryptographic secrets shared by the browser (is. user agent) along with a subscription.
3333
///
34-
/// - SeeAlso: [RFC8291 Message Encryption for Web Push §2.1. Key and Secret Distribution](https://datatracker.ietf.org/doc/html/rfc8291#section-2.1)
34+
/// - SeeAlso: [RFC 8291 Message Encryption for Web Push §2.1. Key and Secret Distribution](https://datatracker.ietf.org/doc/html/rfc8291#section-2.1)
3535
public struct UserAgentKeyMaterial: Sendable {
3636
/// The underlying type of an authentication secret.
3737
public typealias Salt = Data

Sources/WebPush/VAPID/VAPID.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@ public typealias VAPID = VoluntaryApplicationServerIdentification
1212

1313
/// A set of types for Voluntary Application Server Identification, also known as VAPID.
1414
///
15-
/// - SeeAlso: [RFC8292](https://datatracker.ietf.org/doc/html/rfc8292)
15+
/// - SeeAlso: [RFC 8292](https://datatracker.ietf.org/doc/html/rfc8292)
1616
public enum VoluntaryApplicationServerIdentification: Sendable {}

Sources/WebPush/VAPID/VAPIDConfiguration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ extension VAPID.Configuration {
202202
/// This allows administrators of push services to contact you should an issue arise with your application server.
203203
///
204204
/// - Note: Although the specification notes that this field is optional, some push services may refuse connection from serers without contact information.
205-
/// - SeeAlso: [RFC8292 Voluntary Application Server Identification (VAPID) for Web Push §2.1. Application Server Contact Information](https://datatracker.ietf.org/doc/html/rfc8292#section-2.1)
205+
/// - SeeAlso: [RFC 8292 Voluntary Application Server Identification (VAPID) for Web Push §2.1. Application Server Contact Information](https://datatracker.ietf.org/doc/html/rfc8292#section-2.1)
206206
public enum ContactInformation: Hashable, Codable, Sendable {
207207
/// A URL-based contact method, such as a support page on your website.
208208
case url(URL)

Sources/WebPush/VAPID/VAPIDToken.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Foundation
1212
extension VAPID {
1313
/// An internal representation the token and authorization headers used self-identification.
1414
///
15-
/// - SeeAlso: [RFC8292 Voluntary Application Server Identification (VAPID) for Web Push §2. Application Server Self-Identification](https://datatracker.ietf.org/doc/html/rfc8292#section-2)
15+
/// - SeeAlso: [RFC 8292 Voluntary Application Server Identification (VAPID) for Web Push §2. Application Server Self-Identification](https://datatracker.ietf.org/doc/html/rfc8292#section-2)
1616
struct Token: Hashable, Codable, Sendable {
1717
enum CodingKeys: String, CodingKey {
1818
case audience = "aud"

0 commit comments

Comments
 (0)