hunchentoot

    0熱度

    1回答

    我正在使用RESTAS,Hunchentoot和CL-JSON開發Lisp API。我有這樣定義的路由: (define-route user/register ("/user/register" :method :post) (let* ((raw-data (hunchentoot:raw-post-data :force-text t)) (params (json:de

    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) #\>)))

    0熱度

    1回答

    我使用hunchentoot web服務器,並在那裏上傳文件。它將文件存儲到臨時位置(/ tmp/hunchentoot/hunchentoot-XX),並將修改和創建日期設置爲現在。我如何獲得收到的文件的原始創建日期?

    2熱度

    3回答

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

    3熱度

    2回答

    我找不到任何有關如何基於HTTP方法調度的文檔(在同一個uri上)。我得到的最接近是:default-request-type在define-easy-handler - 但似乎派遣到後者,即使我用GET方法: (define-easy-handler (index :uri "/" :default-request-type :get)() (log-message* :info "G

    4熱度

    1回答

    我使用Hunchentoot爲Web應用程序是一個高流量的數據庫驅動的應用程序,也取決於網絡套接字協議和http ajax請求。 當我的基準我與Apache基準應用爲 ab -c 50 -n 1000 連接顯示覆位提示。對於40個併發測試完成,但沒有完成。如何增加Hunchentoot的最大線程數。 根據我應該考慮的高流量Web應用程序,每單位時間的併發性和請求數目的實際數量是多少?例如reddi

    3熱度

    1回答

    假設我在模塊m1內定義了一個動態變量*a*。然後我安裝模塊m1在m2模塊: (in-package m2) (mount-module sub (#:m1) (m1:*a* 3)) 我怎樣才能獲得價值3現在從模塊m2?例如,目前,我必須以這種方式破解它: (restas:with-context (second (gethash 'm1 (gethas

    0熱度

    1回答

    我剛與hunchentoot一起工作。 無論如何,我正在做一個網頁來管理一個簡單的待辦事項列表,後面 this教程。 我有我的deletetodo功能相關的問題定義: (defun deletetodo (todoid) (setf *todos* (remove (find todoid *todos* :test #'equal :key #'todocid) *todos*))) 當我

    5熱度

    2回答

    我使用SBCL,emacs,slime和quicklisp來安裝各種軟件包。 我實例,並開始一個hunchentoot受體像這樣, CL-USER> (hunchentoot:start (make-instance 'hunchentoot:acceptor :port 4242)) #<HUNCHENTOOT:ACCEPTOR (host *, port 4242)> 我在端口4242打

    13熱度

    1回答

    就像這裏的一些askers一樣,我是Lisp的新手。我正在瀏覽Practical Common Lisp這本書,但是我不知道如何設置一個web應用程序,所以我一直在遵循this教程以及updated version here。 當我開始啓動服務器時,我的REPL死亡,我不能再將任何東西推到*dispatch-table*上。 所以基本上,我有一些代碼在REPL偉大的工作,將對象添加到列表,檢索它們