SkillAgentSearch skills...

WebLinking.swift

Swift implementation of web linking (RFC5988)

Install / Use

/learn @kylef-archive/WebLinking.swift
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

# Web Linking

Swift implementation of Web Linking (RFC5988).

Installation

CocoaPods is the recommended installation method.

pod 'WebLinking'

Example

Given the following Link header on an NSHTTPURLResponse.

Link: <https://api.github.com/user/repos?page=3&per_page=100>; rel="next",
      <https://api.github.com/user/repos?page=50&per_page=100>; rel="last"

We can find the next link on a response:

if let link = response.findLink(relation: "next") {
  print("We have a next link with the URI: \(link.uri).")
}

Or introspect all available links:

for link in response.links {
  print("We have a link with the relation: \(link.relationType) to \(link.uri).")
}

License

Web Linking is licensed under the MIT license. See LICENSE for more info.

Related Skills

View on GitHub
GitHub Stars155
CategoryDevelopment
Updated21d ago
Forks20

Languages

Swift

Security Score

95/100

Audited on Mar 14, 2026

No findings