Allow headers to be sent with api doc request

Solves #71.

At some point we need to do this better and unify the way these requests are generated. SynchronousHttpClient shouldn't need the .request method