rialo-http-call-interface 0.1.10

Instructions and constructors for the http call program
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Copyright (c) Subzero Labs, Inc.
// SPDX-License-Identifier: Apache-2.0

use serde::{Deserialize, Serialize};

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct HttpCallArgs {
    pub call_type: HttpCallType,
    pub url: String,
    pub encoding: String,
    pub body: Vec<u8>,
}

#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub enum HttpCallType {
    Get,
    Post,
}