We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e2217f commit f279152Copy full SHA for f279152
mod.ts
@@ -1,7 +1,15 @@
1
import { sha256Hex } from "./deps.ts";
2
import { toAmz, toDateStamp } from "./src/date.ts";
3
+export { toAmz, toDateStamp };
4
import { getSignatureKey, signAwsV4 } from "./src/signing.ts";
5
6
+/**
7
+ * Generic AWS Signer interface
8
+ */
9
+export interface Signer {
10
+ sign: (service: string, request: Request) => Promise<Request>;
11
+}
12
+
13
/**
14
* The AWS credentials to use for signing.
15
*/
@@ -32,7 +40,7 @@ export interface Credentials {
32
40
* const response = await fetch(req);
33
41
* ```
34
42
35
-export class AWSSignerV4 {
43
+export class AWSSignerV4 implements Signer {
36
44
private region: string;
37
45
private credentials: Credentials;
38
46
0 commit comments