datastar/ds_act

Types

pub opaque type ActionRestConfig
pub opaque type ContentType
pub opaque type Method

Functions

pub fn delete(url: String) -> ActionRestConfig

https://data-star.dev/reference/actions#delete

pub fn end(config: ActionRestConfig) -> String
pub fn get(url: String) -> ActionRestConfig

https://data-star.dev/reference/actions#get

pub fn patch(url: String) -> ActionRestConfig

https://data-star.dev/reference/actions#patch

pub fn post(url: String) -> ActionRestConfig

https://data-star.dev/reference/actions#post

pub fn put(url: String) -> ActionRestConfig

https://data-star.dev/reference/actions#put

pub fn set_all(signals: String, expression: String) -> String

https://data-star.dev/reference/actions#setall

pub fn toggle_all(signals: String) -> String

https://data-star.dev/reference/actions#toggleall

pub fn with_content_type_form(
  config: ActionRestConfig,
) -> ActionRestConfig
pub fn with_headers(
  config: ActionRestConfig,
  headers: List(#(String, String)),
) -> ActionRestConfig
Search Document