[][src]Trait async_graphql_tide::ResponseExt

pub trait ResponseExt: Sized {
    fn body_graphql(self, res: Result<QueryResponse>) -> Result<Self>;
fn body_graphql_stream(self, res: StreamResponse) -> Result<Self>; }

Tide response extension

Required methods

fn body_graphql(self, res: Result<QueryResponse>) -> Result<Self>

Set body as the result of a GraphQL query.

fn body_graphql_stream(self, res: StreamResponse) -> Result<Self>

Set body as the result of a GraphQL streaming query.

Loading content...

Implementations on Foreign Types

impl ResponseExt for Response[src]

Loading content...

Implementors

Loading content...