<commit_before>(cl:defpackage #:conserv.http
  (:use #:cl
        #:alexandria
        #:trivial-gray-streams
        #:conserv)
  (:export
   #:*http-server*
   #:*request*
   #:*reply*
   #:set-headers
   ;; HTTP
   #:http-listen
   #:on-http-request
   #:on-request-upgrade
   #:on-request-data
   #:reply-headers))
<commit_msg>Exporting HTTP server API.<commit_after>(cl:defpackage #:conserv.http
  (:use #:cl
        #:alexandria
        #:trivial-gray-streams
        #:conserv)
  (:export
   ;; Requests
   #:*request*
   #:on-request-data
   #:on-request-continue
   #:on-request-upgrade
   #:on-request-close

   #:request-method
   #:request-url
   #:request-headers
   #:request-http-version
   #:request-external-format

   ;; Replies
   #:*reply*
   #:on-reply-close

   #:reply-status
   #:reply-headers
   #:reply-external-format

   #:set-headers
   #:write-headers

   ;; HTTP server
   #:*http-server*
   #:on-http-listen
   #:on-http-request
   #:on-http-connection
   #:on-http-close
   #:on-http-error

   #:http-server-driver
   #:http-server-external-format-in
   #:http-server-external-format-out
   #:http-listen))
{'fraction_non_alphanumeric': 0.17383669885864794, 'fraction_numerical': 0.0, 'mean_word_length': 2.7012987012987013, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1319299', 'n_tokens_mistral': 449, 'n_tokens_neox': 389, 'n_words': 60}