Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Slide DevCoach #151
Search
shabilla
June 03, 2024
87
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Slide DevCoach #151
shabilla
June 03, 2024
Transcript
25 slides
Position Hidup Lebih Simpel dengan Axios Front-End Web Nur Rizki
Adi Curriculum Developer
Agenda Front-End Web • Apa itu Axios • Perbedaan Axios
dengan lainnya • Cara penggunaan Axios API • Dua fitur utama yang keren!
Efficient Client-Server Communication: An Overview of Protocols and Techniques -
Pavlo Kolodka Front-End Web
XMLHttpRequest Front-End Web Fetch API Browser API untuk Client-Server Communication
Front-End Web Library untuk Client-Server Communication
• For browser and Node.js. An isomorphic. • Promise-based HTTP
client. Node.js use http module and browser use XHR. • Simple to use. • Very extensible interface. Front-End Web Why should I choose Lit? - lit.dev Axios, HTTP Client Library
Contoh Fetch API
Contoh Axios
Contoh Fetch API dengan async/await
Contoh Axios dengan async/await
Perbedaan antara Fetch API & Axios
Skema Response dari Axios Response Schema - Axios Docs
Hanya itu saja kelebihannya? • Axios Instance • Interceptor Front-End
Web
How Does Axios Work
Axios Request Request Interceptor Transform Request How does Axios work?
Browser XMLHttpRequest Node.js Node.js HTTP Request How does Axios work?
then()/catch() Response Interceptor Transform Response How does Axios work?
Let’s get dirty our hands
Use Case for Interceptor
Use Case for Interceptor
• The rules of usage, Axios API. • Request config
for making request. • Handling error in axios. Another to Know!
Thank You nurrizkiadip Nur Rizki Adi Prasetyo @NAdiPrasetyo
[email protected]
Nur
Rizki Adi Prasetyo Nur Rizki Adi Prasetyo Front-End Web
Feedback! Hadiah: • 1 Token Langganan Academy (30 Hari) *untuk
pengisi feedback terpilih! dicoding.id/devcoachfeedback
Front-end Web
https://reflectoring.io/tutorial-guide- axios/ https://masteringjs.io/axios
More Decks by shabilla
See All by shabilla
Slide DevCoach
shabillarestu
0
88
Slide DevCoach
shabillarestu
0
61
Slide DevCoach
shabillarestu
0
72
Slide DevCoach
shabillarestu
0
67
Slide DevCoach
shabillarestu
0
69
Slide DevCoach
shabillarestu
0
52
Slide DevCoach
shabillarestu
0
66
Slide DevCoach
shabillarestu
0
61
Slide DevCoach
shabillarestu
0
72
Featured
See All Featured
Navigating Algorithm Shifts & AI Overviews - #SMXNext
aleyda
1
1.7k
The browser strikes back
jonoalderson
0
2k
The Web Performance Landscape in 2024 [PerfNow 2024]
tammyeverts
12
1.4k
Fantastic passwords and where to find them - at NoRuKo
philnash
53
4k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
Evolving SEO for Evolving Search Engines
ryanjones
0
360
YesSQL, Process and Tooling at Scale
rocio
174
15k
Building Better People: How to give real-time feedback that sticks.
wjessup
371
20k
How to Create Impact in a Changing Tech Landscape [PerfNow 2023]
tammyeverts
56
3.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
3
810
Large-scale JavaScript Application Architecture
addyosmani
516
110k
Building Adaptive Systems
keathley
44
3.3k