Compare commits

...

5 Commits

Author SHA1 Message Date
Anton Bachin
8cb51f18ee Document Dream.form ~csrf:false 2023-11-07 21:06:02 +03:00
Anton Bachin
a3579218c2 Upgrade to latest websocket/af fork commits 2023-11-07 18:58:19 +03:00
Anton Bachin
d802548914 Upgrade H2 to 0.11 and newest commits 2023-11-07 18:50:20 +03:00
Anton Bachin
51902fc63c Pull in latest http/af fork commits
These commits do not affect the Dream code in any way.
2023-11-07 18:43:36 +03:00
Anton Bachin
c86e49225e Upgrade Gluten to 0.5 2023-11-07 18:37:35 +03:00
8 changed files with 7 additions and 9 deletions

View File

@ -38,10 +38,8 @@ depends: [
"digestif" {>= "0.7.2"} # websocket/af, sha1, default implementation. "digestif" {>= "0.7.2"} # websocket/af, sha1, default implementation.
"faraday" {>= "0.6.1"} "faraday" {>= "0.6.1"}
"faraday-lwt-unix" "faraday-lwt-unix"
"ke" {>= "0.5"} # Gluten.
"lwt_ssl" {>= "1.2.0"} # Gluten. "lwt_ssl" {>= "1.2.0"} # Gluten.
"psq" # h2. "psq" # h2.
"result" # websocket/af.
] ]
build: [ build: [

View File

@ -56,6 +56,7 @@ depends: [
"dune" {>= "2.7.0"} "dune" {>= "2.7.0"}
"duration" "duration"
"emile" {>= "1.1"} "emile" {>= "1.1"}
"ke" {>= "0.4"} # paf.
"letsencrypt" {>= "0.3.0"} "letsencrypt" {>= "0.3.0"}
"lwt" "lwt"
"lwt_ppx" {>= "1.2.2"} "lwt_ppx" {>= "1.2.2"}

View File

@ -1000,6 +1000,8 @@ val form : ?csrf:bool -> request -> (string * string) list form_result promise
The call must be done under a session middleware, since each CSRF token is The call must be done under a session middleware, since each CSRF token is
scoped to a session. See {!section-sessions}. scoped to a session. See {!section-sessions}.
CSRF token checking can be bypassed by passing [~csrf:false].
The returned form fields are sorted in alphabetical order for reliable The returned form fields are sorted in alphabetical order for reliable
pattern matching. This is because browsers can transmit the form fields in a pattern matching. This is because browsers can transmit the form fields in a
different order from how they appear in the HTML: different order from how they appear in the HTML:

3
src/vendor/dune vendored
View File

@ -9,7 +9,6 @@
(libraries (libraries
bigstringaf bigstringaf
faraday faraday
ke
))) )))
(subdir gluten/lwt (subdir gluten/lwt
@ -90,7 +89,6 @@
faraday faraday
dream-httpaf.dream-gluten dream-httpaf.dream-gluten
dream-httpaf.dream-httpaf_ dream-httpaf.dream-httpaf_
result
))) )))
(subdir websocketaf/lwt (subdir websocketaf/lwt
@ -153,7 +151,6 @@
dream-httpaf.dream-hpack dream-httpaf.dream-hpack
dream-httpaf.dream-httpaf_ dream-httpaf.dream-httpaf_
psq psq
result
))) )))
(subdir h2/lwt (subdir h2/lwt

2
src/vendor/gluten vendored

@ -1 +1 @@
Subproject commit 22ccc110dbe469d38c1363124cf10afd7766aab7 Subproject commit 59e630be097c8c48c4bfaf3df28ca8f40d1a333f

2
src/vendor/h2 vendored

@ -1 +1 @@
Subproject commit 68669ef33aa93ce37cd1ac39e82f918983c418d5 Subproject commit 3ce5740ecf7c92c892d5d20684483935ebb5b2e8

2
src/vendor/httpaf vendored

@ -1 +1 @@
Subproject commit e2d080035a837d345182e0a66f46def18ac7bcdb Subproject commit 94254931d6e9efd4d304683ba7d1d4e001a506c5

@ -1 +1 @@
Subproject commit 7530659c8a3fd1beed5197acde37dc7a20acd0af Subproject commit aacd79aafbb5b375b1514a76260adb48c1d70eb8