Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add fastly device lookup #24

Merged
merged 1 commit into from
Mar 19, 2024
Merged

Conversation

AndrewBarba
Copy link
Collaborator

@AndrewBarba AndrewBarba commented Mar 19, 2024

Adds support for Fastly's new device lookup API

try await onIncomingRequest { req, res in
    let userAgent = req.headers[.userAgent]!
    let device = try Fastly.Device.lookup(userAgent: userAgent)
}

@AndrewBarba AndrewBarba changed the title Fastly Device Lookup feat: add fastly device lookup Mar 19, 2024
@AndrewBarba AndrewBarba merged commit 5f847f2 into main Mar 19, 2024
3 checks passed
@AndrewBarba AndrewBarba deleted the barba/fastly-device-lookup branch March 19, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant