Consider the following CL code that uses dexador and quri.
;;;; Variables
(defparameter *proxy* nil "Optional HTTP proxy")
;;;; Functions
(defgeneric load-resource (src)
(:documentation "Load a resource in an appropriate way based on the type of `src'."))
(defmethod load-resource ((src quri:uri-http))
"Load `src' via HTTP(S)."
(dex:get src :proxy *proxy*))
(defmethod load-resource ((src quri:uri-file))
Comment too long. Click here to view the full text.