reqwest_builder/types.rs
1use std::collections::HashMap;
2
3/// Supported request body types
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum RequestBody {
6 /// JSON body
7 Json,
8 /// Form-encoded body
9 Form,
10 /// Multipart form body (for file uploads, etc.)
11 Multipart,
12 /// No body (for GET, DELETE, etc.)
13 None,
14}
15
16/// Query parameters for the request
17pub type QueryParams = HashMap<String, String>;