(httpkit-fake-handler opts)Creates a ring-handler that is compatible with http-kit-fake. Receives the same
options as `ring-handler.
Creates a `ring-handler` that is compatible with `http-kit-fake`. Receives the same options as `ring-handler.
(ring-handler {:keys [initial-state] :as _opts})Creates a ring like handler that emulates the github api. Receives a map of options that configure the handler.
Options:
:initial-state: a map containing information about organizations
and repositories that will form the initial state of the emulator.Example:
{:orgs [{:name "nubank" :repos [{:name "some-repo" :default_branch "master"}]}]}
default_branch is optional and will default to "main".
Creates a ring like handler that emulates the github api.
Receives a map of options that configure the handler.
Options:
- `:initial-state`: a map containing information about organizations
and repositories that will form the initial state of the emulator.
Example:
```
{:orgs [{:name "nubank" :repos [{:name "some-repo" :default_branch "master"}]}]}
```
`default_branch` is optional and will default to "main".
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |