grpc_gateway 0.1.5

A GRPC Gateway which handle the http request and convert into GRPC
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::auth::Auth;

#[derive(Debug, Clone)]
pub struct APIKeyAuth {
    pub header_name: String,
    pub value: String,
}

impl Auth for APIKeyAuth {
    fn header_name(&self) -> &str {
        &self.header_name
    }

    fn value(&self) -> String {
        self.value.to_string()
    }
}