sig/plugins/aws_sigv4.rbs in httpx-0.16.1 vs sig/plugins/aws_sigv4.rbs in httpx-0.17.0
- old
+ new
@@ -7,17 +7,25 @@
def security_token: () -> String?
end
module AWSSigV4
- Credentials: _SigV4Credentials
+ class Credentials < Struct[[String, String, String?]]
+ attr_reader username: String
+ attr_reader password: String
+ attr_reader security_token: String?
+ end
class Signer
- def sign!: (Request) -> void
+ @unsigned_headers: Set[String]
+ def sign!: (Request & RequestMethods request) -> void
+
+ def self.new: (instance) -> instance
+ | (**untyped params) -> instance
private
def initialize: (
service: String,
region: String,
@@ -31,12 +39,13 @@
?apply_checksum_header: bool,
?algorithm: String
) -> untyped
- def sha256_hexdigest: (bodyIO value) -> String
+ def hexdigest: (bodyIO value) -> String
def hmac: (String key, String value) -> String
+
def hexhmac: (String key, String value) -> String
end
interface _SigV4Options