ring.middleware.file_info__init.class Maven / Gradle / Ivy
The newest version!
???? 1( ring/middleware/file_info__init java/lang/Object load ()V const__0 Lclojure/lang/Var; clojure/lang/Var
getRawRoot ()Ljava/lang/Object;
clojure/lang/IFn const__1 Lclojure/lang/AFn; invoke &(Ljava/lang/Object;)Ljava/lang/Object; /ring/middleware/file_info$loading__4910__auto__
clojure/lang/Symbol " const__2 $ % equals (Ljava/lang/Object;)Z ' (
# ) !ring/middleware/file_info$fn__648 +
, java/util/concurrent/Callable . clojure/lang/LockingTransaction 0 runInTransaction 3(Ljava/util/concurrent/Callable;)Ljava/lang/Object; 2 3
1 4 const__3 6 7 const__13 9 : clojure/lang/IPersistentMap < setMeta (Lclojure/lang/IPersistentMap;)V > ?
@ )ring/middleware/file_info$guess_mime_type B
C bindRoot (Ljava/lang/Object;)V E F
G const__14 I J const__19 L M *ring/middleware/file_info$make_http_format O
P const__20 R S const__23 U V 3ring/middleware/file_info$not_modified_since_QMARK_ X
Y const__24 [ \ const__27 ^ _ (ring/middleware/file_info$wrap_file_info a
b const__4 Lclojure/lang/Keyword; const__5 const__6 Ljava/lang/Object; const__7 const__8 const__9 const__10 const__11 const__12 const__15 const__16 const__17 const__18 const__21 const__22 const__25 const__26 __init0 clojure.core x in-ns z clojure/lang/RT | var 8(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Var; ~
} ? ring.middleware.file-info ? intern ;(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Symbol; ? ?
# ? clojure/lang/IObj ? doc ? keyword <(Ljava/lang/String;Ljava/lang/String;)Lclojure/lang/Keyword; ? ?
} ? Augment Ring File responses. ? map 2([Ljava/lang/Object;)Lclojure/lang/IPersistentMap; ? ?
} ? withMeta 2(Lclojure/lang/IPersistentMap;)Lclojure/lang/IObj; ? ? ? ? clojure/lang/AFn ? guess-mime-type ? file ? clojure/lang/Keyword ? d e ? column ? f e ? java/lang/Integer ? valueOf (I)Ljava/lang/Integer; ? ?
? ? g h ? line ? i e ? j h ? arglists ? k e ? tag ? File ?
mime-types ? vector 5([Ljava/lang/Object;)Lclojure/lang/IPersistentVector; ? ?
} ? java/util/Arrays ? asList %([Ljava/lang/Object;)Ljava/util/List; ? ?
? ? clojure/lang/PersistentList ? create 0(Ljava/util/List;)Lclojure/lang/IPersistentList; ? ?
? ? l h ? m e ? private ? n e ? java/lang/Boolean ? TRUE Ljava/lang/Boolean; ? ? ? ? ?Returns a String corresponding to the guessed mime type for the given file,
or application/octet-stream if a type cannot be guessed. ? ring/middleware/file_info.clj ? make-http-format ? o h ? p h ? q e ? java.text.SimpleDateFormat ? java/lang/Class ? forName %(Ljava/lang/String;)Ljava/lang/Class; ? ?
? ? r h ? =Formats or parses dates into HTTP date format (RFC 822/1123). ? not-modified-since? ? s h ? headers ? as ? req ?
last-modified t h BHas the file been modified since the last request from the client? wrap-file-info u h app
& v h ?Wrap an app such that responses with a file a body will have corresponding
Content-Type, Content-Length, and Last Modified headers added if they can be
determined from the file.
If the request specifies a If-Modified-Since header that matches the last
modification date of the file, a 304 Not Modified response is returned.
If two arguments are given, the second is taken to be a map of file extensions
to content types that will supplement the default, built-in map. w
ring.middleware.file_info__init getClassLoader ()Ljava/lang/ClassLoader;
? clojure/lang/Compiler pushNSandLoader (Ljava/lang/ClassLoader;)V
! popThreadBindings#
$ Code LineNumberTable ! $ 6 d e f e g h i e j h k e l h m e n e 9 I o h p h q e r h L R s h t h U [ u h v h ^ &