dexador

API Reference

dexador

Yet another HTTP client for Common Lisp

DEXADOR

  • Function GET (uri &rest args &key version headers basic-auth cookie-jar keep-alive use-connection-pool timeout max-redirects force-binary want-stream ssl-key-file ssl-cert-file ssl-key-password stream verbose proxy insecure ca-path)
  • Function POST (uri &rest args &key version content headers basic-auth cookie-jar keep-alive use-connection-pool timeout force-binary want-stream ssl-key-file ssl-cert-file ssl-key-password stream verbose proxy insecure ca-path)
  • Function HEAD (uri &rest args &key version headers basic-auth cookie-jar timeout max-redirects ssl-key-file ssl-cert-file ssl-key-password stream verbose proxy insecure ca-path)
  • Function PUT (uri &rest args &key version content headers basic-auth cookie-jar keep-alive use-connection-pool timeout force-binary want-stream ssl-key-file ssl-cert-file ssl-key-password stream verbose proxy insecure ca-path)
  • Function DELETE (uri &rest args &key version headers basic-auth cookie-jar keep-alive use-connection-pool timeout force-binary want-stream ssl-key-file ssl-cert-file ssl-key-password stream verbose proxy insecure ca-path)
  • Function FETCH (uri destination &key (if-exists :error) verbose proxy insecure)

Also exports

  • DEXADOR.CONNECTION-CACHE:*USE-CONNECTION-POOL*
  • DEXADOR.UTIL:*VERBOSE*
  • DEXADOR.ERROR:RESPONSE-HEADERS
  • DEXADOR.ERROR:HTTP-REQUEST-SERVICE-UNAVAILABLE
  • DEXADOR.ERROR:HTTP-REQUEST-PROXY-AUTHENTICATION-REQUIRED
  • DEXADOR.ERROR:HTTP-REQUEST-HTTP-VERSION-NOT-SUPPORTED
  • DEXADOR.ERROR:HTTP-REQUEST-REQUEST-TIMEOUT
  • DEXADOR.ERROR:HTTP-REQUEST-NOT-IMPLEMENTED
  • DEXADOR.ERROR:HTTP-REQUEST-UPGRADE-REQUIRED
  • DEXADOR.ERROR:HTTP-REQUEST-NOT-ACCEPTABLE
  • DEXADOR.CONNECTION-CACHE:CLEAR-CONNECTION-POOL
  • DEXADOR.ERROR:HTTP-REQUEST-MISDIRECTED-REQUEST
  • DEXADOR.ERROR:RESPONSE-STATUS
  • DEXADOR.ERROR:HTTP-REQUEST-FORBIDDEN
  • DEXADOR.ERROR:REQUEST-URI
  • DEXADOR.ERROR:HTTP-REQUEST-RANGE-NOT-SATISFIABLE
  • DEXADOR.ERROR:HTTP-REQUEST-PRECONDITION-FAILED
  • DEXADOR.ERROR:HTTP-REQUEST-PAYMENT-REQUIRED
  • DEXADOR.ERROR:HTTP-REQUEST-LENGTH-REQUIRED
  • DEXADOR.ERROR:HTTP-REQUEST-NOT-FOUND
  • DEXADOR.ERROR:HTTP-REQUEST-GATEWAY-TIMEOUT
  • DEXADOR.ERROR:HTTP-REQUEST-UNSUPPORTED-MEDIA-TYPE
  • DEXADOR.CONNECTION-CACHE:*CONNECTION-POOL*
  • DEXADOR.UTIL:*NOT-VERIFY-SSL*
  • DEXADOR.UTIL:*DEFAULT-TIMEOUT*
  • DEXADOR.ERROR:RESPONSE-BODY
  • DEXADOR.ERROR:HTTP-REQUEST-UNAUTHORIZED
  • DEXADOR.BACKEND.USOCKET:IGNORE-AND-CONTINUE
  • DEXADOR.ERROR:HTTP-REQUEST-EXPECTATION-FAILED
  • DEXADOR.ERROR:HTTP-REQUEST-CONFLICT
  • DEXADOR.ERROR:HTTP-REQUEST-BAD-REQUEST
  • DEXADOR.ERROR:HTTP-REQUEST-URI-TOO-LONG
  • DEXADOR.ERROR:HTTP-REQUEST-GONE
  • DEXADOR.ERROR:HTTP-REQUEST-BAD-GATEWAY
  • DEXADOR.BACKEND.USOCKET:RETRY-REQUEST
  • DEXADOR.BACKEND.USOCKET:REQUEST
  • DEXADOR.ERROR:HTTP-REQUEST-FAILED
  • DEXADOR.ERROR:HTTP-REQUEST-PAYLOAD-TOO-LARGE
  • DEXADOR.CONNECTION-CACHE:MAKE-CONNECTION-POOL
  • DEXADOR.ERROR:HTTP-REQUEST-METHOD-NOT-ALLOWED
  • DEXADOR.ERROR:HTTP-REQUEST-INTERNAL-SERVER-ERROR

DEXADOR.ENCODING

  • Function DETECT-CHARSET (content-type body)

DEXADOR.CONNECTION-CACHE

  • Variable *CONNECTION-POOL*
    nil
  • Variable *USE-CONNECTION-POOL*
    t
  • Function MAKE-CONNECTION-POOL
  • Function STEAL-CONNECTION (host-port)
  • Function PUSH-CONNECTION (host-port socket)
  • Function CLEAR-CONNECTION-POOL

DEXADOR.DECODING-STREAM

Provides character decoding stream.
Similar to flexi-input-stream, except this uses Babel for decoding.
  • Class DECODING-STREAM  (FUNDAMENTAL-CHARACTER-INPUT-STREAM)
    STREAM   Accessor: DECODING-STREAM-STREAM
    ENCODING   Accessor: DECODING-STREAM-ENCODING
    BUFFER   Accessor: DECODING-STREAM-BUFFER
    BUFFER-POSITION   Accessor: DECODING-STREAM-BUFFER-POSITION
    BUFFER-END-POSITION   Accessor: DECODING-STREAM-BUFFER-END-POSITION
    LAST-CHAR   Accessor: DECODING-STREAM-LAST-CHAR
    LAST-CHAR-SIZE   Accessor: DECODING-STREAM-LAST-CHAR-SIZE
  • Function MAKE-DECODING-STREAM (stream &key (encoding *default-character-encoding*))

DEXADOR.KEEP-ALIVE-STREAM

  • Class KEEP-ALIVE-STREAM  (FUNDAMENTAL-INPUT-STREAM)
    STREAM   Accessor: KEEP-ALIVE-STREAM-STREAM
    END   Accessor: KEEP-ALIVE-STREAM-END
  • Class KEEP-ALIVE-CHUNKED-STREAM  (KEEP-ALIVE-STREAM)
    STATE
  • Function MAKE-KEEP-ALIVE-STREAM (stream &key end chunked)

DEXADOR.ERROR

  • Condition HTTP-REQUEST-FAILED  (ERROR)
  • Condition HTTP-REQUEST-BAD-REQUEST  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-UNAUTHORIZED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-PAYMENT-REQUIRED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-FORBIDDEN  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-NOT-FOUND  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-METHOD-NOT-ALLOWED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-NOT-ACCEPTABLE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-PROXY-AUTHENTICATION-REQUIRED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-REQUEST-TIMEOUT  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-CONFLICT  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-GONE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-LENGTH-REQUIRED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-PRECONDITION-FAILED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-PAYLOAD-TOO-LARGE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-URI-TOO-LONG  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-UNSUPPORTED-MEDIA-TYPE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-RANGE-NOT-SATISFIABLE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-EXPECTATION-FAILED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-MISDIRECTED-REQUEST  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-UPGRADE-REQUIRED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-INTERNAL-SERVER-ERROR  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-NOT-IMPLEMENTED  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-BAD-GATEWAY  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-SERVICE-UNAVAILABLE  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-GATEWAY-TIMEOUT  (HTTP-REQUEST-FAILED)
  • Condition HTTP-REQUEST-HTTP-VERSION-NOT-SUPPORTED  (HTTP-REQUEST-FAILED)
  • Function HTTP-REQUEST-FAILED (status &key body headers uri)

DEXADOR.UTIL

  • Variable *DEFAULT-TIMEOUT*
    10
  • Variable *VERBOSE*
    nil
  • Variable *NOT-VERIFY-SSL*
    nil
  • Macro DEFUN-SPEEDY (name lambda-list &body body)
  • Macro DEFUN-CAREFUL (name lambda-list &body body)
  • Type OCTETS (&optional (len '*))
  • Function ASCII-STRING-TO-OCTETS (string)
  • Variable +CRLF+
    (dexador.util:ascii-string-to-octets (format nil "~c~c" #\return #\newline))
  • Variable *DEFAULT-USER-AGENT*
    (format nil "dexador/~a (~a~@[ ~a~]); ~a;~@[ ~a~]"
            dexador.util::*dexador-version*
            (or (lisp-implementation-type) "common lisp")
            (or (lisp-implementation-version) "") (or (software-type) "unix")
            (or (software-version)))
  • Function WRITE-FIRST-LINE (method uri proxy version &optional (buffer *header-buffer*))
  • Function WRITE-HEADER (name value &optional (buffer *header-buffer*))
  • Macro WITH-HEADER-OUTPUT ((buffer &optional output) &body body)
  • Function WRITE-CONNECT-HEADER (uri version buffer)
  • Function MAKE-RANDOM-STRING (&optional (length 12))

DEXADOR.BACKEND.USOCKET

  • Function REQUEST (uri &rest args &key (method :get) (version 1.1) content headers basic-auth cookie-jar (timeout *default-timeout*) (keep-alive t) (use-connection-pool t) (max-redirects 5) ssl-key-file ssl-cert-file ssl-key-password stream (verbose *verbose*) force-binary want-stream proxy (insecure *not-verify-ssl*) ca-path)

dexador-test

No packages.