UNPKG

@rails/request.js

Version:

A tiny Fetch API wrapper that allows you to make http requests without need to handle to send the CSRF Token on every request

7 lines (5 loc) 304 B
import { FetchRequest } from './fetch_request' import { FetchResponse } from './fetch_response' import { RequestInterceptor } from './request_interceptor' import { get, post, put, patch, destroy } from './verbs' export { FetchRequest, FetchResponse, RequestInterceptor, get, post, put, patch, destroy }