JADE Environment Development Ideas

What's new in the upcoming JADE release?

IMPROVED DEVELOPER EFFICIENCY. ENHANCED SECURITY. SMOOTHER INTEGRATION

The JADE 2022 release meets tomorrow’s business demands.


Start your update to JADE's latest release

REST API should allow response headers to be set

It's a standard requirement to be able to set specific headers in the response to an HTTP request, including a REST request. Jade provides no ability to do this and it makes the Jade REST framework less usable in real world solutions.
  • Guest
  • May 1 2019
  • Shipped
HistoricalComments
Software Medical Infomatics Limited 22/08/2018 9:52:17 AM
It seems you can do this already by implementing a reply method on your JadeRestService subclass.

e.g.

reply(msg: String);
vars
response: String;
authHeader: String;
begin
response := msg;
authHeader := "my-auth-details";
response := 'Authorization: ' & authHeader & CrLf & response;
inheritMethod(response);
end;


When I do this and look in the Chrome dev tools, I see my Authorization header being returned correctly.
  • Attach files
  • Ashley Bass commented
    August 28, 2019 02:09

    You can do this already by implementing a reply method on your JadeRestService subclass. Please see the historical comments for more info.

  • +4