pub struct CallHTTPDefinitionBuilder { /* private fields */ }Expand description
Builder for constructing an HTTP call task.
Implementations§
Source§impl CallHTTPDefinitionBuilder
impl CallHTTPDefinitionBuilder
pub fn new(method: &str, endpoint: &str) -> Self
Sourcepub fn with_header(&mut self, name: &str, value: &str) -> &mut Self
pub fn with_header(&mut self, name: &str, value: &str) -> &mut Self
Adds an HTTP header to the request.
Sourcepub fn with_query(&mut self, name: &str, value: &str) -> &mut Self
pub fn with_query(&mut self, name: &str, value: &str) -> &mut Self
Adds a query parameter to the request.
Sourcepub fn with_query_map(&mut self, map: HashMap<String, String>) -> &mut Self
pub fn with_query_map(&mut self, map: HashMap<String, String>) -> &mut Self
Adds multiple query parameters from a map.
Sourcepub fn with_query_expression(&mut self, expr: &str) -> &mut Self
pub fn with_query_expression(&mut self, expr: &str) -> &mut Self
Sets query parameters from a runtime expression (e.g., "${ .queryParams }").
Sourcepub fn with_output_format(&mut self, output: &str) -> &mut Self
pub fn with_output_format(&mut self, output: &str) -> &mut Self
Sets the output format for the HTTP response.
Sourcepub fn with_redirect(&mut self, redirect: bool) -> &mut Self
pub fn with_redirect(&mut self, redirect: bool) -> &mut Self
Sets whether HTTP redirects should be followed.
Auto Trait Implementations§
impl Freeze for CallHTTPDefinitionBuilder
impl RefUnwindSafe for CallHTTPDefinitionBuilder
impl Send for CallHTTPDefinitionBuilder
impl Sync for CallHTTPDefinitionBuilder
impl Unpin for CallHTTPDefinitionBuilder
impl UnsafeUnpin for CallHTTPDefinitionBuilder
impl UnwindSafe for CallHTTPDefinitionBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more