@head/http

$http

Usage no npm install needed!

<script type="module">
  import headHttp from 'https://cdn.skypack.dev/@head/http';
</script>

README

@head/http

$http.get(endpoint);
$http.get(endpoint, query);
$http.get(endpoint, query, options);
$http.get(endpoint, null, options);

$http.post(endpoint);
$http.post(endpoint, data);
$http.post(endpoint, query, data);
$http.post(endpoint, query, data, options);
$http.post(endpoint, null, data, options);

CHANGELOG

0.4.0

  1. 显式支持了 querydata 的语法糖