Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

fetch js

// space in "C ontent-Type"
const headers = {
  'C ontent-Type': 'text/xml',
  'Breaking-Bad': '<3',
};
fetch('https://example.com/', { headers });
Source by developer.mozilla.org #
 
PREVIOUS NEXT
Tagged: #fetch #js
ADD COMMENT
Topic
Name
9+6 =