Tag: netflix

  • How to pass request headers when using java netflix graphql client?

    How to pass request headers when using java netflix graphql client?

    0 I am using com.netflix.graphql.dgs:graphql-dgs-client:4.9.16 along with HttpClient (JDK 17) I am creating graphql client using below. GraphQLCLient graphQLClient = GraphQLClient.createCustom( host-url, requestExecutor::exec); And my request executor is based on HttpClient and it’s implementation is roughly as below – import com.netflix.graphql.dgs.client.HttpResponse; import java.net.URI; import java.net.http.HttpClient; import java.net.http.HttpClient.Version; import java.net.http.HttpRequest; import java.net.http.HttpRequest.BodyPublishers; import java.util.List; import java.util.Map;…