diff options
| author | Adelyn Breedlove <[email protected]> | 2019-02-27 07:28:13 -0700 |
|---|---|---|
| committer | Adelyn Breedlove <[email protected]> | 2019-02-27 07:28:13 -0700 |
| commit | a72847bc206779252bb7f487b76654de564a6d7e (patch) | |
| tree | 031273fec2abf64ce7f527d6c4bdce31cbe5111d /lib/http/rl.mli | |
| parent | Correct User-Agent (diff) | |
| download | disml-a72847bc206779252bb7f487b76654de564a6d7e.tar.xz disml-a72847bc206779252bb7f487b76654de564a6d7e.zip | |
Some improvements to rate limits
Diffstat (limited to 'lib/http/rl.mli')
| -rw-r--r-- | lib/http/rl.mli | 6 |
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 *) |