Package com.apollographql.apollo3.api.http
Types
Link copied to clipboard
class ByteStringHttpBody(val contentType: String, byteString: ByteString) : HttpBody
Content copied to clipboard
Link copied to clipboard
class DefaultHttpRequestComposer(serverUrl: String) : HttpRequestComposer
Content copied to clipboard
An HttpRequestComposer that handles:
Link copied to clipboard
Link copied to clipboard
a HTTP header
Link copied to clipboard
Link copied to clipboard
a HTTP request to be sent
Link copied to clipboard
HttpRequestComposer transforms a GraphQL request in a HttpRequest. Typically, this involves building a Json with "query" and "variables" fields but implementations can decide to customize this behaviour. For an example:
Link copied to clipboard
an HTTP Response.
Link copied to clipboard
class UploadsHttpBody(uploads: Map<String, Upload>, operationByteString: ByteString) : HttpBody
Content copied to clipboard
Link copied to clipboard
WebSocketPayloadComposer transforms a GraphQL request in a payload to be sent in a WebSocket message
Functions
Link copied to clipboard
Get the value for header name or null if this header doesn't exist or is defined multiple times