diff options
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 *) |