Skip to content

Commit

Permalink
Fixed scope for StaticEndpointInfo init
Browse files Browse the repository at this point in the history
  • Loading branch information
NicholasMata committed Jul 11, 2022
1 parent 43ee3f5 commit 306454c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ApiKit/Sources/EndpointInfo.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,12 @@ import Foundation
/// Static Endpoint information a basic implementation of EndpointInfo
public struct StaticEndpointInfo: EndpointInfo {
public var url: String
public var headers: [String: String] = [:]
public var headers: [String: String]

public init(url: String, headers: [String: String] = [:]) {
self.url = url
self.headers = headers
}
}

/// Endpoint information used to tie url and headers.
Expand Down

0 comments on commit 306454c

Please sign in to comment.