(http:define-url-export-type :shockwave-file ;Export Type :dir ;Primary Extension (:application :x-director) ;MIME Type :copy-mode :binary ;Binary Content :alternate-extensions (:dcr)) ;Other Extensions
When no corresponding export type is required, you may use http::define-mime-content-type.
A new export type is appropriate when existing ones cannot do the job you require. It is important to consider whether and existing export type could be generalized to meet your requirements before embarking on a new export type. If your new operation is not idempotent (i.e., side effects on the server), you should define method for POST-DOCUMENT instead. Earlier versions of the HTTP specification included additional methods, like PUT, DELETE, and LINK, which may be reinstated when their application becomes apparent.
Copy one of the existing
definitions such as http:extended-common-file-log.
After renaming the calss, provide your own mixin class to which defines
your own methods to write entries:
Add a call to http:intern-access-log
to your CL-HTTP configuration file. This will install an instance of
your log class on the specified port.
A number of variations are possible. The class http:custom-notification-log simplifies the task of writing a log class that notifies the console. http:examples;log-window.lisp defines a log object that notifies a remote Web browser. In some cases, you may need to define methods for HTTP:log-server-access. Be sure to check the documentation for related log operators [External Internal].
![]()