DefaultHttpRequestComposer

class DefaultHttpRequestComposer(serverUrl: String) : HttpRequestComposer

An HttpRequestComposer that handles:

  • GET or POST requests

  • FileUpload by intercepting the Upload custom scalars and sending them as multipart if needed

  • Automatic Persisted Queries

  • Adding the default Apollo headers

Constructors

Link copied to clipboard
fun DefaultHttpRequestComposer(serverUrl: String)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open override fun <D : Operation.Data> compose(apolloRequest: ApolloRequest<D>): HttpRequest