Struct fibers_http_server::metrics::MetricsHandler
[−]
[src]
pub struct MetricsHandler;
A handler for exposing prometheus metrics.
Trait Implementations
impl Debug for MetricsHandler
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl HandleRequest for MetricsHandler
[src]
const METHOD: &'static str
METHOD: &'static str = "GET"
The method that the handler can handle.
const PATH: &'static str
PATH: &'static str = "/metrics"
The request path that the handler can handle. Read more
type ReqBody = ()
The type of the request bodies.
type ResBody = String
The type of the response bodies.
type Decoder = BodyDecoder<NullDecoder>
Request body decoder.
type Encoder = BodyEncoder<Utf8Encoder>
Response body encoder.
type Reply = Finished<Res<Self::ResBody>, Never>
Future
that represents reply to a request.
fn handle_request(&self, _req: Req<Self::ReqBody>) -> Self::Reply
[src]
Handles a request.
fn handle_request_head(&self, req: &Req<()>) -> Option<Res<Self::ResBody>>
[src]
Handles the head part of a request. Read more
fn handle_decoding_error(
&self,
req: Req<()>,
error: &Error
) -> Option<Res<Self::ResBody>>
[src]
&self,
req: Req<()>,
error: &Error
) -> Option<Res<Self::ResBody>>
Handles an error occurred while decoding the body of a request. Read more