Liking cljdoc? Tell your friends :D

onyx-http

Onyx plugin for http.

Installation

In your project file:

[onyx-http "0.8.4.0"]

In your peer boot-up namespace:

(:require [onyx.plugin.http-output])

Functions

sample-entry

Catalog entry:

{:onyx/name :entry-name
 :onyx/plugin :onyx.plugin.http-output/output
 :onyx/type :output
 :onyx/medium :http
 :http-output/success-fn :my.namespace/success?
 :onyx/batch-size batch-size
 :onyx/doc "POST segments to http endpoint"}

Lifecycle entry:

[{:lifecycle/task :your-task-name
  :lifecycle/calls :onyx.plugin.http/lifecycle-calls}]

Attributes

keytypedescription
:http-output/success-fnkeywordAccepts response as argument, should return boolean to indicate if the response was successful. Request will be retried in case it wasn't a success.

Contributing

Pull requests into the master branch are welcomed.

Can you improve this documentation?Edit on GitHub

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close