acts-package-http

Crates.ioacts-package-http
lib.rsacts-package-http
version0.17.2
created_at2025-06-06 12:20:38.78293+00
updated_at2025-06-07 13:42:40.057987+00
descriptionacts package for http request
homepagehttps://docs.rs/acts-package-http
repositoryhttps://github.com/yaojianpin/acts.git
max_upload_size
id1702953
size94,898
(yaojianpin)

documentation

README

acts-package-http

The acts http package plugin for acts.

Installation

cargo add acts-package-http

Start

use acts::EngineBuilder;
use acts_package_http::HttpPackagePlugin;

#[tokio::main]
async fn main() {
    let engine = EngineBuilder::new()
        .add_plugin(&HttpPackagePlugin)
        .build()
        .start();
}

Example

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 }}'

Commit count: 158

cargo fmt