[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/graphql-mode c3471642f5 072/122: Merge pull request #19 fr
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/graphql-mode c3471642f5 072/122: Merge pull request #19 from cbowdon/master |
Date: |
Sat, 29 Jan 2022 08:03:34 -0500 (EST) |
branch: elpa/graphql-mode
commit c3471642f5b7f9363e6254b03b4e46795edc8147
Merge: 36b1a4ed9f 22cb9d4594
Author: David Vázquez Púa <davazp@gmail.com>
Commit: GitHub <noreply@github.com>
Merge pull request #19 from cbowdon/master
Support customizing the headers sent with the request
---
graphql-mode.el | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/graphql-mode.el b/graphql-mode.el
index 38b72275b5..5387c3c9fc 100644
--- a/graphql-mode.el
+++ b/graphql-mode.el
@@ -67,6 +67,12 @@
:type 'file
:group 'graphql)
+(defcustom graphql-headers '(("Content-Type" . "application/json"))
+ "Headers to send to the graphql endpoint."
+ :tag "GraphQL"
+ :type 'list
+ :group 'graphql)
+
(defun graphql-encode-json (query &optional operation variables)
"Put together a json like object with QUERY, OPERATION, and VARIABLES."
(let* ((body '()))
@@ -106,7 +112,7 @@ Please install it and try again."))
url
:type "POST"
:data body
- :headers '(("Content-Type" . "application/json"))
+ :headers graphql-headers
:parser 'json-read
:sync t
:complete (lambda (&rest _)
- [nongnu] elpa/graphql-mode a37919f2ab 065/122: graphql--query: Remove unused lexical variable, (continued)
- [nongnu] elpa/graphql-mode a37919f2ab 065/122: graphql--query: Remove unused lexical variable, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode cf2622cb21 049/122: Update feedback from David, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode d3aa4d66e0 013/122: Extract constants and values into separate variables, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 1bff11f21c 056/122: fix the line-boundary issue to enhance {} sexp, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode ba5952590c 079/122: Merge pull request #22 from cbowdon/master, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 061d6d0b34 001/122: Initial commit, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode cbd07029fa 009/122: Better indentation of closing pairs, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 096df5b167 005/122: Basic line indentation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 3965a4c370 046/122: add request dependency, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 52137014df 073/122: Update packages, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode c3471642f5 072/122: Merge pull request #19 from cbowdon/master,
ELPA Syncer <=
- [nongnu] elpa/graphql-mode 880701685d 038/122: Add some types/field to the test schema, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 0f2b4b1604 077/122: Merge branch 'next', ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode d0a85fe1d3 067/122: Shorten long lines, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 7aa3532aed 026/122: Don't depend on json-mode, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 0b41444096 028/122: Add installation notes, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 43434aa6d5 061/122: Format some docs and docstrings, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 8b2fe76635 057/122: fix a recursive bug in graphql-current-operation, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode f3cfd9fc1e 062/122: Don't send the query as a query parameter, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 301d2419a0 012/122: Prompt the user for the GraphQL, ELPA Syncer, 2022/01/29
- [nongnu] elpa/graphql-mode 17c2150ff6 058/122: rebase branch 'queries support' into branch 'next', ELPA Syncer, 2022/01/29