# acts-package-http
The acts http package plugin for acts.
## Installation
```bash
cargo add acts-package-http
```
## Start
```rust,no_run
use acts::EngineBuilder;
use acts_package_http::HttpPackagePlugin;
#[tokio::main]
async fn main() {
let engine = EngineBuilder::new()
.add_plugin(&HttpPackagePlugin)
.build()
.start();
}
```
## Example
```yml
name: http example
id: http-example
inputs:
key1: 1
key2: 2
steps:
- name: http step
acts:
- uses: acts.core.http
params:
url: http://127.0.0.1:1234/hello
method: GET
# params from workflow.inputs
params:
- key: key1
value: '{{ key1 }}'
- key: key2
value: '{{ key2 }}'
- uses: acts.core.http
params:
url: http://127.0.0.1:1234/world
method: POST
content-type: json
# body data from prev http response data
body:
data: '{{ $inputs().data }}'
```