2.3.0 docs





    Apr 21, 2018


    Index of all namespaces

    « Project + dependencies

    High-performance event-driven HTTP client/server for Clojure

    TimerService wrapper:
    * Can schedule many tasks at once.
    * When scheduled for 1000ms, may run in 1000ms, 10001ms, etc.
    * Cancel returns true => future task guaranteed cancelled;
            returns false => already cancelled || already run.
    * Scheduling a new task is O(log(N)) where N is # active tasks.
    * Cancelling a task is O(N).
    * Timer-service thread will kill itself automatically when no task is
      scheduled for 4 minutes, and will restart automatically when a new task
      is added.
    The README below is fetched from the published project artifact. Some relative links may be broken.

    HTTP Kit

    A high-performance event-driven HTTP client+server for Clojure

    CHANGELOG | Current semantic version/s:

    [http-kit "2.3.0"]  ; Published by contributors, see CHANGELOG for details
    [http-kit "2.1.19"] ; Legacy - Last release published by @shenfeng

    See for documentation, examples, benchmarks, etc. (no longer maintained, some examples may contain minor bugs).

    Project status

    http-kit’s author (@shenfeng) unfortunately hasn’t had much time to maintain http-kit recently. To help out I’ll be doing basic issue triage, accepting minor/obvious PRs, etc.

    A big thank you to the current contributors for keeping the project going! Additional contributors welcome: please ping me if you’d be interested in lending a hand.

    - @ptaoussanis

    Hack locally

    Hacker friendly: zero dependencies, written from the ground-up with only ~3.5k lines of code (including java), clean and tidy.

    # Modify as you want, unit tests back you up:
    lein test
    # May be useful (more info), see `server_test.clj`:
    # Some numbers on how fast can http-kit's client can run:
    lein test :benchmark

    Contact & Contribution

    Please use the GitHub issues page for feature suggestions, bug reports, or general discussions. Current contributors are listed here. The website is also on GitHub here.


    Copyright © 2012-2018 Feng Shen. Distributed under the Apache License Version 2.0.