| title | head( url, [args] ) - Mock HTTP HEAD Requests with Mokapi JavaScript API |
|---|---|
| description | Use Mokapi's JavaScript API to mock HTTP HEAD requests. Customize responses, handle request data, and simulate APIs for testing and development. |
Make a HEAD request
| Parameter | Type | Description |
|---|---|---|
| url | string | Request URL like https://foo.bar |
| args (optional) | object | Args object containing additional request parameters |
| Type | Description |
|---|---|
| Response | Response object |
import { head } from 'mokapi/http'
export default function() {
head("https://foo.bar/foo")
}