import * as validate from 'har-validator/lib/async'
import { request, response } from 'har-validator/lib/async'
Returns
true
orfalse
.
- data:
Object
(Required) a afterRequest" objects
let isValid = validate.afterRequest(data)
Returns
true
orfalse
.
- data:
Object
(Required) a "afterRequest" objects
let isValid = validate.beforeRequest(data)
Returns
true
orfalse
.
- data:
Object
(Required) a browser object
let isValid = validate.browser(data)
Returns
true
orfalse
.
- data:
Object
(Required) a cache object
let isValid = validate.cache(data)
Returns
true
orfalse
.
- data:
Object
(Required) a content object
let isValid = validate.content(data)
Returns
true
orfalse
.
- data:
Object
(Required) a cookie object
let isValid = validate.cookie(data)
Returns
true
orfalse
.
- data:
Object
(Required) a creator object
let isValid = validate.creator(data)
Returns
true
orfalse
.
- data:
Object
(Required) an entry object
let isValid = validate.entry(data)
Returns
true
orfalse
.
- data:
Object
(Required) a full HAR object
let isValid = validate.har(data)
Returns
true
orfalse
.
- data:
Object
(Required) a header object
let isValid = validate.header(data)
Returns
true
orfalse
.
- data:
Object
(Required) a log object
let isValid = validate.log(data)
Returns
true
orfalse
.
- data:
Object
(Required) a page object
let isValid = validate.page(data)
Returns
true
orfalse
.
- data:
Object
(Required) a pageTimings object
let isValid = validate.pageTimings(data)
Returns
true
orfalse
.
- data:
Object
(Required) a postData object
let isValid = validate.postData(data)
Returns
true
orfalse
.
- data:
Object
(Required) a queryString object
let isValid = validate.query(data)
Returns
true
orfalse
.
- data:
Object
(Required) a request object
let isValid = validate.request(data)
Returns
true
orfalse
.
- data:
Object
(Required) a response object
let isValid = validate.cacheEntry(data)
Returns
true
orfalse
.
- data:
Object
(Required) a timings object
let isValid = validate.timings(data)