baseUrl
- baseUrl will prepend the given url. unless url is absolute or URL object.
note
hp.get('/api/me', { baseUrl: 'https://wwww.google.com' }); // https://wwww.google.com/api/me
hp.get('api/me', { baseUrl: 'https://wwww.google.com/' }); // https://wwww.google.com/api/me
hp.get('/api/me', { baseUrl: 'https://wwww.google.com/' }); // https://wwww.google.com/api/me
hp.get('api/me', { baseUrl: 'https://wwww.google.com/' }); // https://wwww.google.com/api/me
hp.get('api/me', { baseUrl: 'https://wwww.google.com' }); // https://wwww.google.com/api/me