Cargando…

Joe Steinbring

Axios

Un cliente HTTP basado en promesas para el navegador y Node.js. Hace el mismo trabajo que el fetch integrado, con interceptores y un manejo de errores que fetch deja en tus manos.

Usé mucho Axios desde 2014 hasta que los navegadores web admitieron bien ES6, cuando la API fetch() integrada eliminó en gran parte la necesidad de usarlo.

Artículos escritos
20
Pens de CodePen escritos
11
Gists de GitHub escritos
1
Sitio web oficial
axios.rest
Antigüedad
12 años (desde 2014)

Aspectos destacados

  • Con él gestioné peticiones, respuestas, errores y estados de carga, también en aplicaciones de Vue.js.
  • Pasé al fetch() nativo del navegador en cuanto tuvo un soporte amplio, y escribí sobre cuándo conviene cada uno.

Del blog

Artículos relacionados

Artículos de JWS News y DEV relacionados con Axios.

  1. Do you really need Axios in your Vue app?

    Just about every vue demo that I have done on this blog has involved Axios. I am not sure that it is necessarily needed all the time, though. I wanted to take this blog post as an opportunity to see if it can be replaced with fetch.

  2. State Parks App: Mapping the park locations

    Earlier this year, we looked at Mapbox and how to use it to show a location on a map. I figured that now that we have a listing of park locations, it is time to look at mapping them. This might be a fairly brief post since everything that we are doing here has been…

  3. State Parks App: Let’s add Bulma and Sorting

    Last week, we finally got the park listing working and updated the instance at test.wisparks.jws.app. This week, I figured that we should add Bulma to the project and add sorting. So, let’s start by adding Bulma and cleaning the code up a little. That improves things quite a bit…

  4. State Parks App: Let’s try that again?

    Last week, I got all the way to the end before the damn Google Sheets API stopped working on me. This week, I figured that we would create a JSON file out of the spreadsheet, host it somewhere, and then just use that. I started by creating a CSV file from the Google Sheets docum…

  5. State Parks App: Let’s actually build something

    Previously, we built an API for the State Parks App, using Google Sheets and we set up hosting for the thing. The next step is to actually write the first bit of the thing. When we created the API, we also wrote a little vue.js proof of concept that loops over the data and outpu…

  6. How to sort a list of locations by how close they are to you

    One of the things that are most important to me for phase 1 of the state parks app is to have the list of parks be sorted by how far the user is from the park. After all, Tower Hill State Park might be interesting but if you live 4 hours away, you aren’t likely…

Desde GoToSocial

Reflexiones relacionadas

Publicaciones breves sobre Axios, seleccionadas por hashtags de tema.

  • #axios
Buscando reflexiones relacionadas…