harpretty

package
v1.64.2 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package harpretty adapts HAR data for Clicky rendering.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	*har.Collector
}

func (*Collector) Pretty

func (c *Collector) Pretty() api.Text

Pretty returns a compact summary of all collected entries.

func (*Collector) Table

func (c *Collector) Table() api.TextTable

Table returns a TextTable of all collected entries with row detail expansion.

type DetailOptions

type DetailOptions struct {
	RequestHeaders  bool
	QueryString     bool
	RequestBody     bool
	ResponseHeaders bool
	ResponseBody    bool
}

type Entry

type Entry har.Entry

func (Entry) Columns

func (e Entry) Columns() []api.ColumnDef

Columns implements api.TableProvider.

func (Entry) Detail

func (e Entry) Detail(options DetailOptions) api.Textable

Detail returns only the selected request and response sections.

func (Entry) Pretty

func (e Entry) Pretty() api.Text

Pretty returns a compact one-line summary.

func (Entry) Row

func (e Entry) Row() map[string]any

Row implements api.TableProvider.

func (Entry) RowDetail

func (e Entry) RowDetail() api.Textable

RowDetail implements api.DetailProvider for expandable table rows.

Jump to

Keyboard shortcuts

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