Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

152
Vistas
Get full response in angular with observe: 'response' with other settings

It works

return this.http.post(url, data, {observe: 'response'})

But for some reason it doesn't

let options = {
  headers: new HttpHeaders().set('Content-Type', "application/json"),
  withCredentials: true,
  observe: 'response'
}
return this.http.post(url, data, options)

Why and how i can use observe: 'response' in this case?

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

you should tell exactly what's not working. I guess the typescript compiler is complaining about the type.

You can solve this like this: return this.http.post(url, data, options as any)

about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda