signHeaders(url:httpMethod:headers:body:logger:)

Generate signed headers

AWSService.swift:106
func signHeaders(url: URL, httpMethod: HTTPMethod, headers: HTTPHeaders = HTTPHeaders(), body: AWSHTTPBody = .init(), logger: Logger = AWSClient.loggingDisabled) async throws -> HTTPHeaders

Parameters

url

URL to sign

httpMethod

HTTP method to use (.GET, .PUT, .PUSH etc)

headers

Headers that are to be used with this URL. Be sure to include these headers when you used the returned URL

body

body payload to sign as well. While it is unnecessary to provide the body for S3 other services require it

logger

Logger to output to

Returns

A series of signed headers including the original headers provided to the function