Higher level core functionality. These mostly delegate to the martian
ns,
which provides the actual HTTP invocation functions.
Higher level core functionality. These mostly delegate to the `martian` ns, which provides the actual HTTP invocation functions.
(invoke-endpoint client ep params)
Invokes the given endpoint using the client by sending a request to
the configured Martian route. If the response has a success status,
it returns the body. Otherwise an exception is thrown. To emphasize
the remote nature of the request, and also because Httpkit works async,
this returns a Manifold deferred
.
Invokes the given endpoint using the client by sending a request to the configured Martian route. If the response has a success status, it returns the body. Otherwise an exception is thrown. To emphasize the remote nature of the request, and also because Httpkit works async, this returns a Manifold `deferred`.
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 |