(I don't recall if all http headers get always pulled into this structure, but you should see that practically soon.)
After remembering a bit more and looking into source, you need to
configure in advance the header names that would get pulled into
that place. In your case that should be simply adding one line
into your config (outside the callbacks)
net.doh_headers({ 'user-agent' })