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
Hey,
currently writing an "auth" module using core/request and wonder if the parsing of querystrings could go to the request module as a responseType because I think it is common (?) :
import{UrlSearchParams}from'../../core/src/main';/** * Add a filter that automatically parses incoming querystrings. */filterRegistry.register(function(response: Response<any>,url: string,options: RequestOptions){returntypeofresponse.data&&options&&options.responseType==='querystring';},function(response: Response<any>,url: string,options: RequestOptions): Object{return{data: (newParameters(String(response.data))).get()};});
Hey,
currently writing an "auth" module using core/request and wonder if the parsing of querystrings could go to the
requestmodule as aresponseTypebecause I think it is common (?) :