Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

78
Views
saber si una búsqueda está solicitando o respondiendo

Tengo un proceso de recuperación de larga duración que publica una carga de archivo grande y espera a que devuelva un archivo grande diferente:

 let formData = new FormData(); formData.append('file', new Blob([file.blob], {type: file.type}), file.name); fetch(someurl, { method: 'POST', body: formData cache: 'no-store' }).then(response => { if (!respone.ok) throw(respone.statusText); return response; }).then(response => response.blob()) .then(blob => { ... do something

¿Puedo saber en qué parte del proceso se encuentra la recuperación: publicar la solicitud o recibir la respuesta ?

https://fetch.spec.whatwg.org/#fetch-elsewhere-fetch dice que fetch (js) podría implementar un processRequestEndOfBody y un processResponseEndOfBody pero la implementación js ( https://fetch.spec.whatwg.org/#dom-global -fetch ) no parece tenerlos. Sin embargo, el inspector de red de Chrome parece tener alguna pista sobre el estado de la solicitud/respuesta y me pregunto si hay alguna manera de obtener esa información en tiempo de ejecución. Cualquier pensamiento/discusión/suplentes apreciados.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!