![]() |
BSB Developer Docs
|
Internal request parsing methods for fetch functionality. More...
Go to the source code of this file.
Functions | |
| jerry_value_t | js_fetch_request_parse (jerry_value_t obj, FetchRequest *request) |
| Parse an incoming JS Request object into its native representation. | |
| void | js_fetch_request_clear (FetchRequest *request) |
| Delete allocated fields inside the request object. | |
Internal request parsing methods for fetch functionality.
| void js_fetch_request_clear | ( | FetchRequest * | request | ) |
Delete allocated fields inside the request object.
The memory pointed to by the request parameter is not freed.
| [in,out] | request | pointer to the native fetch request to be cleared. |
| jerry_value_t js_fetch_request_parse | ( | jerry_value_t | obj, |
| FetchRequest * | request ) |
Parse an incoming JS Request object into its native representation.
| [in] | obj | value representing the input JS object to be parsed |
| [out] | request | pointer to the native fetch request object (must be allocated) |
undefined on success exception on failure (the exception will contain an error string)