0
Fork 0
mirror of https://github.com/ninenines/cowboy.git synced 2025-07-14 20:30:23 +00:00

Document cowboy_metrics_h

This commit is contained in:
Loïc Hoguin 2019-10-07 09:59:36 +02:00
parent 3977f2b96f
commit eaed063702
No known key found for this signature in database
GPG key ID: 8A9DF795F6FED764
6 changed files with 172 additions and 2 deletions

View file

@ -44,6 +44,8 @@
max_method_length => non_neg_integer(),
max_request_line_length => non_neg_integer(),
metrics_callback => cowboy_metrics_h:metrics_callback(),
metrics_req_filter => fun((cowboy_req:req()) -> map()),
metrics_resp_headers_filter => fun((cowboy:http_headers()) -> cowboy:http_headers()),
middlewares => [module()],
proxy_header => boolean(),
request_timeout => timeout(),

View file

@ -51,6 +51,8 @@
max_stream_buffer_size => non_neg_integer(),
max_stream_window_size => 0..16#7fffffff,
metrics_callback => cowboy_metrics_h:metrics_callback(),
metrics_req_filter => fun((cowboy_req:req()) -> map()),
metrics_resp_headers_filter => fun((cowboy:http_headers()) -> cowboy:http_headers()),
middlewares => [module()],
preface_timeout => timeout(),
proxy_header => boolean(),