viewport

package
v0.0.0-...-968ba5a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2024 License: BSD-3-Clause Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	INPUT activeView = 1
	LIST  activeView = 2
)

Functions

This section is empty.

Types

type Model

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

func NewViewport

func NewViewport() Model

func (*Model) GetBody

func (model *Model) GetBody() string

func (Model) GetHeaders

func (model Model) GetHeaders() http.Header

func (*Model) SetResponse

func (model *Model) SetResponse(response lib.Response) tea.Msg

func (Model) Update

func (model Model) Update(msg tea.Msg) (Model, tea.Cmd)

func (Model) View

func (model Model) View() string

type RequestBodyModel

type RequestBodyModel interface {
	tea.Model
	Input() string
}

Jump to

Keyboard shortcuts

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