mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
26 lines
484 B
Markdown
26 lines
484 B
Markdown
---
|
|
nav-title: "fetch How-To"
|
|
title: "How-To"
|
|
description: "Examples for using fetch"
|
|
---
|
|
### Get Response from URL
|
|
<snippet id='fetch-response'/>
|
|
|
|
### Get string from URL
|
|
<snippet id='fetch-string'/>
|
|
|
|
### Get JSON from URL
|
|
<snippet id='fetch-json'/>
|
|
|
|
### Get FormData from URL
|
|
<snippet id='fetch-formdata'/>
|
|
|
|
### Get Response status
|
|
<snippet id='fetch-status-response'/>
|
|
|
|
### Get response headers
|
|
<snippet id='fetch-headers-response'/>
|
|
|
|
### Post JSON
|
|
<snippet id='fetch-post-json'/>
|