hunchentoot

    4熱度

    1回答

    我嘗試實現一個基於Hunchentoot的簡單後期示例。 下面是代碼: (define-easy-handler (test :uri "/test")() (with-html-output-to-string (*standard-output* nil :prologue t :indent t) (:html (:body (:h1 "Test")

    3熱度

    1回答

    之前得到的URL的一部分。如果一個客戶機對proto://hostname:port/path請求我想獲得proto://hostname:port。 我可能錯過了一些東西,但現在我能想到的唯一的辦法就是沿着 (format nil "~A://~A" (stringify-downcase-scan (server-protocol*)) (host)) 線使用的東西,有沒有什麼函數/方法具

    0熱度

    1回答

    我是Common Lisp(SBCL)和Hunchentoot(使用Quicklisp)的新手。有人能告訴我如何讓這個工作?我試圖將一個Hunchentoot服務器和一些路徑包含在一個函數中作爲一個單元。當我運行這個時,只有Hunchentoot的索引頁面可用,路徑/ a和/ b不是。 (defun app0 (port) (let ((*dispatch-table* nil) (se

    2熱度

    1回答

    我在helloworld.asd定義的簡單系統: (asdf:defsystem #:helloworld :description "helloworld" :author "Duncan Bayne <[email protected]>" :license "WTFNMF" :depends-on (#:hunchentoot) :seria

    1熱度

    1回答

    我試圖爲靜態文件與Hunchentoot,從我的項目中的www目錄。我接受的定義是: (defvar *acceptor* (make-instance 'easy-acceptor :port 4242 :document-root (truename "./www/"))) 然後,我開始吧: (start *acceptor*) 承兌人的作品,我可以使用defi

    3熱度

    1回答

    以下功能: (defun check-for-arrow (x) (format t "**~s**~s**~s**~s**" (length (string x)) x (eq x '->) (and (eq (elt (string x) 0) #\-) (eq (elt (string x) 1) #\>)))

    3熱度

    2回答

    當用Clause/Hunchentoot連接Slime提供的大文件時,我有時會看到類似SB-IMPL :: SIMPLE-STREAM-PERROR的錯誤消息「無法寫入〜s」......這些都是由於瀏覽器過早丟失連接(這是完全正常的)。問題在於每次發生時都會彈出SLDB。這很煩人。 有沒有一種方法可以抑制SLDB中的某些錯誤,比如上述?我仍然希望在錯誤日誌中看到它們,但絕對不在SLDB中。

    1熱度

    1回答

    我已經更新quicklisp到拉泰什版本 CL-USER>(QL:更新所有dists中) 1 DIST檢查。 您已經有最新版本的「quicklisp」:2017-06-30。 NIL 但這並沒有更新的依賴到最新版本,EX。 Hunchentoot網絡服務器版本是1.2.35,但由於錯誤修正,我需要1.2.37。 /home/pio/quicklisp/dists/quicklisp/softwar

    1熱度

    1回答

    當我編寫我的網頁時,我選擇使用通用的lisp來構建它。但我得到的只是一個網頁的源代碼。 但是,當我將網頁複製到我的emacs並重新打開時,它可以正常工作。我不知道什麼是錯的。 我在Lisp代碼是 (defmacro standard-page ((&key title) &body body) (with-html-output-to-string(*standard-output* nil

    2熱度

    3回答

    如何在項目上啓動Hunchentoot?我查看了Edi Weitz的指南,一切安然無恙。列出的教程或者被破壞或者被實際的服務器使用率所剔除。 我有我的asdf文件,使用quicklisp安裝了依賴項,並設置了一個調度表。我如何讓Hunchentoot使用這些東西?