Rifle v0.1.0 Rifle View Source
Starts a pool of connections.
Link to this section Summary
Functions
Returns a specification to start this module under a supervisor
Uses svc_name
pool to get path
Callback invoked to start the supervisor and during hot code upgrades
Can make any custom request with any HTTP method
. For all the http functions,
this method is used internally
Link to this section Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
Uses svc_name
pool to get path
.
Options:
svc_name
- Name of the pool.path
- Path without the domain given while starting the pool.headers
- List of tuples(with binaries) which will be passed as custom headers.req_opts
- Options given toGun
. Has a:timeout
of 10 seconds as default.
Callback invoked to start the supervisor and during hot code upgrades.
Developers typically invoke Supervisor.init/2
at the end of their
init callback to return the proper supervision flags.
Callback implementation for Supervisor.init/1
.
Options:
- Same as
get/4
body
needs to be binary, which will be passed as POST body.
Can make any custom request with any HTTP method
. For all the http functions,
this method is used internally.
Options:
method
can beGET
,POST
,PUT
,DELETE
,HEAD
,OPTIONS
,TRACE
- Other options are same as
post/5