How can I append more fields to something like this?

No, the thing is that I need to transform the HttpHeaders from Angular to an Object, because depending of the platform I have to use Angular’s HttpClient or Ionic’s Native HTTP which has to receive an object for the headers parameter.

I’ve finally got it tho with:

private transformHeaders(angularHeaders: any): any {
    var nativeHeaders= {};
    if(angularHeaders) {
      for(let header of angularHeaders.lazyUpdate) {
        nativeHeaders[header.name] = header.value;
      }
    }
    return newHeaders;
  }

With this I iterate over all headers in a HttpHeaders object and assign them to a new object where they key is the header’s name and the value is the header’s value.

Thanks for the help =)