harx

package
v0.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package harx converts captured flows to and from the HAR 1.2 (HTTP Archive) format for interop with browsers, Postman, and other tooling.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Build

func Build(flows []*store.Flow, body func(hash string) []byte) []byte

Build serializes flows to a HAR document. body returns a flow body by hash.

Types

type Entry

type Entry struct {
	Method      string
	URL         string
	HTTPVersion string
	ReqHeaders  map[string][]string
	ReqBody     []byte
	Status      int
	ResHeaders  map[string][]string
	ResBody     []byte
	Mime        string
	TS          time.Time
	DurationMs  int64
}

Entry is a parsed HAR entry ready to import as a flow.

func Parse

func Parse(data []byte) ([]Entry, error)

Parse reads a HAR document into importable entries.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL