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

252
Vistas
How to see non-body returns?

I'm using Postman to test Azure Function. For this code

context.res = {status: 200, body: "ok", txt: "hello"};

txt is nowhere to be seen. Anyway to check it or have to wrap it under body? enter image description here

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

0

According to Azure Functions JavaScript developer guide the response doesn't contain the object you've specified:

The context.res (response) object has the following properties:

Property Description
body An object that contains the body of the response.
headers An object that contains the response headers.
isRaw Indicates that formatting is skipped for the response.
status The HTTP status code of the response.
cookies An array of HTTP cookie objects that are set in the response. An >HTTP cookie object has a name, value, and other cookie properties, such as >maxAge or sameSite.

I assume the property txt is not serialized to the response so I don't think you could access it from postman or other any other client.

If you want to return some data you should add it to the body:

context.res = {
    status: 200, 
    body: {
        "message": "ok", 
        "txt": "hello"
    }
};
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