We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3869a55 commit 1757359Copy full SHA for 1757359
Sources/Vapor/HTTP/Headers/HTTPHeaders.swift
@@ -21,11 +21,11 @@ extension HTTPHeaders {
21
///
22
/// You can access all `MediaType`s in this collection to check membership.
23
24
- /// httpReq.accept.mediaTypes.contains(.html)
+ /// httpReq.headers.accept.mediaTypes.contains(.html)
25
26
/// Or you can compare preferences for two `MediaType`s.
27
28
- /// let pref = httpReq.accept.comparePreference(for: .json, to: .html)
+ /// let pref = httpReq.headers.accept.comparePreference(for: .json, to: .html)
29
30
public var accept: [HTTPMediaTypePreference] {
31
self.parseDirectives(name: .accept).compactMap {
0 commit comments