You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I would like to implement a variable
[static Map<String, Object> defaultHeaders] from within the [Response] class to define an instance of default [headers] for all [Response] of the web server app. If possible, this will make developers' lives much easier without having to create [Middleware] to intercept, process and add the standard header to each requested response.
Thank you in advance, Suebersson.
How would this look:
Olá, eu gostaria que fosso implementado uma variável
[static Map<String, Object> defaultHeaders] de dentro da classe [Response] para definirmos uma instância de [headers] padrão da para todas as [Response] do app web server. Sendo possível, isso irá facilitar muito a vida dos desenvolvedores sem precisar ter que criar uma [Middleware] para interceptar, processar e adicionar a header padrão dentro cada response de requisitada.
It may even be an anti-pattern, but I saw that using the responder.change(...) constructor creates a new instance, reprocessing everything again, reprocessing all internal methods again. This can be avoided if we could define the app's default response header, even if this is done through a variable
Hello, I would like to implement a variable
[static Map<String, Object> defaultHeaders] from within the [Response] class to define an instance of default [headers] for all [Response] of the web server app. If possible, this will make developers' lives much easier without having to create [Middleware] to intercept, process and add the standard header to each requested response.
Thank you in advance, Suebersson.
How would this look:
Olá, eu gostaria que fosso implementado uma variável
[static Map<String, Object> defaultHeaders] de dentro da classe [Response] para definirmos uma instância de [headers] padrão da para todas as [Response] do app web server. Sendo possível, isso irá facilitar muito a vida dos desenvolvedores sem precisar ter que criar uma [Middleware] para interceptar, processar e adicionar a header padrão dentro cada response de requisitada.
Desde já agradeço, Suebersson.
Como isso isso ficaria:
The text was updated successfully, but these errors were encountered: