diff --git a/Sources/HTTPClientAWSSigner/request.swift b/Sources/HTTPClientAWSSigner/request.swift index 3ed173a..fbda122 100644 --- a/Sources/HTTPClientAWSSigner/request.swift +++ b/Sources/HTTPClientAWSSigner/request.swift @@ -27,12 +27,14 @@ public extension AWSSigner.BodyData { public extension HTTPClient { /// return signed HTTPClient request with signature in the headers + @available(*, deprecated, message: "Support for AsyncHTTPClient will be removed in v3.0") static func awsHeaderSignedRequest(url: URL, method: HTTPMethod = .GET, headers: HTTPHeaders = HTTPHeaders(), body: AWSSigner.BodyData? = nil, date: Date = Date(), signer: AWSSigner) throws -> HTTPClient.Request { let signedHeaders = signer.signHeaders(url: url, method: method, headers: headers, body: body, date: date) return try HTTPClient.Request(url: url, method: method, headers: signedHeaders, body: body?.body) } /// return signed HTTPClient request with signature in the URL + @available(*, deprecated, message: "Support for AsyncHTTPClient will be removed in v3.0") static func awsURLSignedRequest(url: URL, method: HTTPMethod = .GET, body: AWSSigner.BodyData? = nil, date: Date = Date(), expires: Int = 86400, signer: AWSSigner) throws -> HTTPClient.Request { let signedURL = signer.signURL(url: url, method: method, body: body, date: date, expires: expires) return try HTTPClient.Request(url: signedURL, method: method, body: body?.body)