Current File : //kunden/usr/share/emacs/27.2/lisp/url/url-methods.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(require 'url-parse)
(defvar url-scheme-registry (make-hash-table :size 7 :test 'equal))
#@57 Assoc-list of methods that each URL loader can provide.
(defconst url-scheme-methods '((default-port . variable) (asynchronous-p . variable) (expand-file-name . function) (file-exists-p . function) (file-attributes . function) (parse-url . function) (file-symlink-p . function) (file-writable-p . function) (file-directory-p . function) (file-executable-p . function) (directory-files . function) (file-truename . function)) (#$ . 497))
(defconst url-scheme-default-properties (list 'name "unknown" 'loader 'url-scheme-default-loader 'default-port 0 'expand-file-name 'url-identity-expander 'parse-url 'url-generic-parse-url 'asynchronous-p nil 'file-directory-p 'ignore 'file-truename #[(&rest args) "\301@!\207" [args url-recreate-url] 2] 'file-exists-p 'ignore 'file-attributes 'ignore))
#@44 Signal an error for an unknown URL scheme.
(defalias 'url-scheme-default-loader #[(url &optional callback cbargs) "\302\303\304! >\204 \305\306\300D\"\210\307H\"\207" [url cl-struct-url-tags error "Unknown URL scheme: %s" type-of signal wrong-type-argument 1] 6 (#$ . 1295)])
(defvar url-scheme--registering-proxy nil)
#@75 Automatically find a proxy for SCHEME and put it in `url-proxy-services'.
(defalias 'url-scheme-register-proxy #[(scheme) "\306P\307 \226!\206 \307 \227!\310\"\311\312!\n;\203'