WebLinking.swift
Swift implementation of web linking (RFC5988)
Install / Use
/learn @kylef-archive/WebLinking.swiftREADME
# 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
node-connect
348.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
348.5kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
348.5kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
