Skip to content

FabricCore/fetch-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

  • fetch
  • fetchSync
fetch(url, options)
    .then(res => res.text())
    .then(console.log)
    .catch(console.error);

Response

  • res.bytes() -> byte[]
  • res.text(encoding = "utf8") -> String
  • res.json(encoding = "utf8") -> Object
  • res.status() -> int
  • res.statusText() -> String
  • res.url() -> String
  • res.redirected() -> Boolean
  • res.ok() -> Boolean
  • Response.getStatusText(code: int) -> String

About

Provides the fetch API.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published