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

[swift6] add credentials by default #19885

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ import Alamofire{{/useAlamofire}}
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -161,9 +162,8 @@ import Alamofire{{/useAlamofire}}
return self
}

{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addCredential() -> Self {
{{#nonPublicApi}}internal{{/nonPublicApi}}{{^nonPublicApi}}open{{/nonPublicApi}} func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -103,9 +104,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -138,9 +139,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ internal class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

internal func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ internal class RequestBuilder<T>: @unchecked Sendable {
return self
}

internal func addCredential() -> Self {
internal func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -89,9 +90,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand All @@ -91,9 +92,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ open class RequestBuilder<T>: @unchecked Sendable {
self.openAPIClient = openAPIClient

addHeaders(openAPIClient.customHeaders)
addCredential()
}

open func addHeaders(_ aHeaders: [String: String]) {
Expand Down Expand Up @@ -124,9 +125,8 @@ open class RequestBuilder<T>: @unchecked Sendable {
return self
}

open func addCredential() -> Self {
open func addCredential() {
credential = openAPIClient.credential
return self
}
}

Expand Down
Loading