HollyPony / react-rest-api

Lightweight react rest api + hooks

Home Page:https://codesandbox.io/s/github/HollyPony/react-rest-api-samples/tree/master/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add `HEAD`, `PATCH`, `CONNECT`, `OPTIONS` and `TRACE` http methods support

HollyPony opened this issue · comments

According to full definition of a RESTful Api : https://en.wikipedia.org/wiki/Representational_state_transfer

Currently, this could be achieve by setting the config param with { method: 'HEAD' }

I think these could be achieved easly with current state calling api.fetch('xxx', { method: 'OPTIONS' }). It's not enough common to justify weighter package.