Skip to content

Commit

Permalink
Public Func
Browse files Browse the repository at this point in the history
  • Loading branch information
mlch911 committed Dec 28, 2023
1 parent d345a2b commit ee40bc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Sources/Extensions/HTTPURLResponseExtensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import FoundationNetworking
#endif

extension HTTPURLResponse {
var rateLimit: RateLimit? {
public var rateLimit: RateLimit? {
if let value = value(forHTTPHeaderField: "X-Rate-Limit") {
return RateLimit(value: value, requestURL: url)
} else {
Expand Down
2 changes: 1 addition & 1 deletion Sources/RateLimit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct RateLimit: Codable {
/// The url of the request the rate limit were returned for.
public let requestURL: URL?

init(value: String, requestURL: URL?) {
public init(value: String, requestURL: URL?) {
self.requestURL = requestURL

let items = value.split(separator: ",", omittingEmptySubsequences: true).flatMap {
Expand Down

0 comments on commit ee40bc3

Please sign in to comment.