mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 11:42:04 +08:00
28 lines
522 B
Markdown
28 lines
522 B
Markdown
---
|
|
nav-title: "fetch How-To"
|
|
title: "fetch"
|
|
environment: nativescript
|
|
description: "Examples for using fetch"
|
|
previous_url: /ApiReference/fetch/HOW-TO
|
|
---
|
|
### Get Response from URL
|
|
{%snippet fetch-response%}
|
|
|
|
### Get string from URL
|
|
{%snippet fetch-string%}
|
|
|
|
### Get JSON from URL
|
|
{%snippet fetch-json%}
|
|
|
|
### Get FormData from URL
|
|
{%snippet fetch-formdata%}
|
|
|
|
### Get Response status
|
|
{%snippet fetch-status-response%}
|
|
|
|
### Get response headers
|
|
{%snippet fetch-headers-response%}
|
|
|
|
### Post JSON
|
|
{%snippet fetch-post-json%}
|