api-methods remove content header to prevent preflight
Remove setting of custom content-type
header in APIMethods
. This header is not actually needed by our API and causes preflight checks for nearly every query (because of unique query parameters). This reduces network activity by about half. Also add a couple function type definitions used for mocking in later PRs.