browse

package
v0.1.16 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package browse launches the default browser with httpmon's proxy configured via system proxy settings, and restores them on cleanup.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	// contains filtered or unexported fields
}

Session holds state needed to restore proxy settings on cleanup.

func Start

func Start(proxyPort int, url string) (*Session, error)

Start configures the system HTTP/HTTPS proxy, then opens url in the default browser. The returned Session must be Stop'd to restore proxy settings.

func (*Session) Stop

func (s *Session) Stop() error

Stop restores the original system proxy settings.

Jump to

Keyboard shortcuts

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