GQLClient
Client used to send HTTP POST requests to an api
Parameters
http Client
The HttpClient used to send requests. Uses an automatically configured HttpClient by default.
json
The instance of Json to use to serialize variables and serialize responses.
See also
Http Client
Constructors
Functions
Link copied to clipboard
Link copied to clipboard
suspend fun stringSendMutation(url: String, mutation: Mutation, variables: JsonObject? = null, operationName: String = "", headers: List<HttpHeader> = listOf()): StringResponse
Link copied to clipboard
suspend fun stringSendQuery(url: String, mutation: Query, variables: JsonObject? = null, operationName: String = "", headers: List<HttpHeader> = listOf()): StringResponse