rpc Action

Use rpc to send the page's variables to the backend in an HTTP POST.

Specify the URL of the backend endpoint.

If the backend returns HTTP 422 Unprocessable Content with a text/plain body, the frontend displays the body to the user in an error screen.

Example POST

Examples

# Ruby
rpc("/login")
#![allow(unused)]
fn main() {
// Rust
rpc("/login")
}