Skip to content

Commit de1c6b8

Browse files
authored
Merge branch 'TheSpyder:main' into feat.buffer.1
2 parents 4ac6926 + f6054bf commit de1c6b8

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

src/Crypto.res

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,12 @@ KeyObject = {
3131
include Impl
3232
}
3333

34+
type binaryToTextEncoding =
35+
| @as("base64") Base64
36+
| @as("base64url") Base64url
37+
| @as("hex") Hex
38+
| @as("binary") Binary
39+
3440
module PivateKey = {
3541
include KeyObject.Impl
3642
type kind = [KeyObject.privateKey]
@@ -60,6 +66,9 @@ module Hash = {
6066
@send external copy: t => t = "copy"
6167
@send external digest: t => Buffer.t = "digest"
6268
@send external update: (t, Buffer.t) => unit = "update"
69+
@send external updateString: (t, string) => t = "update"
70+
@send external updateStringWithEncoding: (t, string, NodeJs.StringEncoding.t) => t = "update"
71+
@send external digestWithEncoding: (t, binaryToTextEncoding) => string = "digest"
6372
}
6473
include Impl
6574
}

src/Http.res

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,10 @@ type headersObject = {
8787
warning: option<string>,
8888
@as("www-authenticate")
8989
wwwAuthenticate: option<string>,
90+
@as("sec-websocket-key")
91+
secWebSocketKey: option<string>,
92+
@as("sec-websocket-version")
93+
secWebSocketVersion: option<string>,
9094
}
9195

9296
module IncomingMessage = {

0 commit comments

Comments
 (0)