                  ("X-Ycm-Hmac" . ,encoded-hex-hmac))
       :parser parser
       :data content
-      :type "POST")
+      :type type)
 
      (deferred:nextc it
        (lambda (req)


(defun ycmd--on-find-file ()
  (when (ycmd--major-mode-to-file-types major-mode)
    (unless (ycmd-running?) (ycmd-open))
    (ycmd-notify-file-ready-to-parse)))

(add-hook 'find-file-hook 'ycmd--on-find-file)

  "Tells you if a ycmd server is already running."
  (interactive)
  (if (get-process ycmd--server-process) 't nil))

(defun ycmd--keepalive ()
  "Sends an unspecified message to the server.

This is simply for keepalive functionality."
  (ycmd--request "/healthy" '() :type "GET"))

(defun ycmd-load-conf-file (filename)
  "Tell the ycmd server to load the configuration file FILENAME."
