Transfer headers to request during request serialization

I found my requests were failing authorisation.  I looked to find where the headers were transferred from the serializer to the request, but couldn't find any code that did that.  I appreciate I've looked at this brand new code base for all of 30 minutes so am possibly missing something, but this little loop fixed the problem for me?