Update examples
This commit is contained in:
parent
98b7b46882
commit
4576d30ed6
2
examples
2
examples
@ -1 +1 @@
|
|||||||
Subproject commit aef1433bdc1c98d98632972d24ac1065e25fe90f
|
Subproject commit e53b181afe66589bb8519fe350456685eca85e31
|
@ -12,7 +12,7 @@ use poem::{http, Endpoint, FromRequest, IntoResponse, Request, RequestBody, Resp
|
|||||||
///
|
///
|
||||||
/// It extract GraphQL protocol from `SEC_WEBSOCKET_PROTOCOL` header.
|
/// It extract GraphQL protocol from `SEC_WEBSOCKET_PROTOCOL` header.
|
||||||
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
|
||||||
pub struct GraphQLProtocol(WebSocketProtocols);
|
pub struct GraphQLProtocol(pub WebSocketProtocols);
|
||||||
|
|
||||||
#[poem::async_trait]
|
#[poem::async_trait]
|
||||||
impl<'a> FromRequest<'a> for GraphQLProtocol {
|
impl<'a> FromRequest<'a> for GraphQLProtocol {
|
||||||
|
Loading…
Reference in New Issue
Block a user