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

122
Views
¿Cómo accedo a los encabezados de respuesta usando ServiceStack?

Estoy usando reaccionar con el kit de herramientas Redux pero no puedo acceder a los encabezados de Respuesta

 return await client .get(new Users()) .then((data) => { // how to I access the Response Header here? console.log("data", data); return data; }) .catch((error) => { });
about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Supongo que se está refiriendo al TypeScript Service Client de ServiceStack, cuya API pública puede encontrar en index.d.ts donde puede usar la instancia requestFilter y responseFilter :

 export declare class JsonServiceClient { //... requestFilter: (req: IRequestInit) => void; responseFilter: (res: Response) => void; }

Para inspeccionar la Solicitud / Respuesta de la API de obtención W3C subyacente, por ejemplo:

 let client = new JsonServiceClient(); client.responseFilter = function(r) { console.log(r.headers) } client.get(new Users()) .then(...)
about 4 years ago · Juan Pablo Isaza Report
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!