Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

axios.create() instance

const instance = axios.create({
  baseURL: 'https://some-domain.com/api/',
  timeout: 1000,
  headers: {'X-Custom-Header': 'foobar'}
});
Source by github.com #
 
PREVIOUS NEXT
Tagged: #instance
ADD COMMENT
Topic
Name
7+6 =