aboutsummaryrefslogtreecommitdiff
path: root/lib/http/rl.mli
diff options
context:
space:
mode:
authorAdelyn Breedlove <[email protected]>2019-02-27 07:28:13 -0700
committerAdelyn Breedlove <[email protected]>2019-02-27 07:28:13 -0700
commita72847bc206779252bb7f487b76654de564a6d7e (patch)
tree031273fec2abf64ce7f527d6c4bdce31cbe5111d /lib/http/rl.mli
parentCorrect User-Agent (diff)
downloaddisml-a72847bc206779252bb7f487b76654de564a6d7e.tar.xz
disml-a72847bc206779252bb7f487b76654de564a6d7e.zip
Some improvements to rate limits
Diffstat (limited to 'lib/http/rl.mli')
-rw-r--r--lib/http/rl.mli6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/http/rl.mli b/lib/http/rl.mli
index a0facb3..54bc5ee 100644
--- a/lib/http/rl.mli
+++ b/lib/http/rl.mli
@@ -16,6 +16,12 @@ type rl = {
(** Type representing the specific case of {!RouteMap}. *)
type t = ((rl, read_write) Mvar.t) RouteMap.t
+val get_rl :
+ [ `Get | `Delete | `Post | `Patch | `Put ] ->
+ string ->
+ t ->
+ (rl, read_write) Mvar.t * t
+
(** Converts Cohttp header data into ratelimit information.
@return Some of ratelimit information or None on bad headers
*)