chobitsu
chobitsu copied to clipboard
fix: respect headers and method from request input parameter
FetchRequest
is expected to be constucted with only single Request
object as the first parameter of the constructor.
However, FetchRequest
only extracts url
from Request
without headers
and method
for now.
This PR includes them as fallback value for options
(the second parameter, RequestInit
object) also so that can construct FetchRequest
properly.
@surunzi Could you review it, please?