What is the module/service which can be used to call a Jasper report from
Angular 6 code via http. In .net there is HttpWebResponse for making a
http/rest call and it allows to add a header to the request. How it can be
done in Angular 6?
HttpWebRequest request = WebRequest.Create(URL ADDRESS)
request.Headers.Add(credentials)
request.Method = "GET";
request.ContentType = "text/xml";
HttpWebResponse response;
using (response = request.GetResponse() as HttpWebResponse)
{
// Get the response stream
StreamReader reader = new
StreamReader(response.GetResponseStream(), Encoding.UTF8);
StreamReader reader = new
StreamReader(response.GetResponseStream());
results = reader.ReadToEnd();
}
--
You received this message because you are subscribed to the Google Groups
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.