Struct async_graphql_actix_web::Response [−][src]
pub struct Response(pub BatchResponse);
Expand description
Responder for a GraphQL response.
This contains a batch response, but since regular responses are a type of batch response it works for both.
Tuple Fields
0: BatchResponse
Trait Implementations
Performs the conversion.
type Future = Ready<Result<HttpResponse>>
type Future = Ready<Result<HttpResponse>>
The future response value.
Convert itself to AsyncResult
or Error
.
Override a status code for a Responder. Read more
fn with_header<K, V>(self, key: K, value: V) -> CustomResponder<Self> where
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
fn with_header<K, V>(self, key: K, value: V) -> CustomResponder<Self> where
V: IntoHeaderValue,
HeaderName: TryFrom<K>,
<HeaderName as TryFrom<K>>::Error: Into<Error>,
Add header to the Responder’s response. Read more