http/request: fix some things and add documentation