pub fn graphiql(url: &str) -> impl Handler {
        let source = Bytes::from(juniper::http::graphiql::graphiql_source(url));
        wrap_ready(move |_| {
            Response::builder()
                .header(header::CONTENT_TYPE, "text/html; charset=utf-8")
                .body(source.clone())
                .map_err(Error::internal_server_error)
        })
    }
/// Creates a handler generating the HTML source to show a GraphiQL interface.
Creates a handler generating the HTML source to show a GraphiQL interface.
Creates a handler generating the HTML source to show a GraphiQL interface .
pub fn graphiql(url: &str) -> impl Handler {
        let source = Bytes::from(juniper::http::graphiql::graphiql_source(url));
        wrap_ready(move |_| {
            Response::builder()
                .header(header::CONTENT_TYPE, "text/html; charset=utf-8")
                .body(source.clone())
                .map_err(Error::internal_server_error)
        })
    }
pub fn graphiql ( url : & str ) -> impl Handler { let source = Bytes :: from ( juniper :: http :: graphiql :: graphiql_source ( url ) ) ; wrap_ready ( move | _ | { Response :: builder ( ) . header ( header :: CONTENT_TYPE , " " ) . body ( source . clone ( ) ) . map_err ( Error :: internal_server_error ) } ) }
Creates a handler generating the HTML source to show a GraphiQL interface.
Creates a handler generating the HTML source to show a GraphiQL interface .
url
&str
url
&str