/http_har

A Nim library to turn stdlib req/resp into HAR docs

Primary LanguageNimMIT LicenseMIT

http_har

A Nim library to turn request and responses from the standard library into HAR v1.2 documents.

Usage

Download

Downloading can be done via

nimble install https://github.com/celeo/http_har

or putting requires "https://github.com/celeo/http_har.git" into your project's .nimble file and running nimble build or nibmle test.

Use

Whenever your application has access to a Request and Response/AsyncResponse, you can feed those objects into a convert call via this library:

import http_har

...

let har = convert(req, resp)
echo har

Testing

nimble test