sends a form to the server
send(url: string, method?: string, asFormData?: boolean): Promise<any> | void;
Parameters:url: string
- the URL of the servermethod: string
- the request type, "POST" by defaultasFormData: boolean
- optional, defines whether values of Form controls should be sent as Form DataAn object of the promise.
Example
const send = form.send("myserver.com", "POST");
The method parameter can take "PUT", "POST", "DELETE", "GET" values, depending on the used type of the request.
Change log:added in v6.1
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4