Documentation
¶
Index ¶
- Variables
- func LoadGlobalVarsFromHTTPFile(filename string) map[string]string
- func SaveHTTPFile(data *HTTPFileData, filename string) error
- func SendByCLI(method string, url string, simpleOutput bool, payloadIdx int)
- type HTTPFileData
- type HTTPRequest
- type Model
- type ParamsTable
- type Styles
- type TableRow
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NormalTitleStyle = lipgloss.NewStyle(). Foreground(lipgloss.AdaptiveColor{Light: "#777777", Dark: "#777777"}) )
Functions ¶
func LoadGlobalVarsFromHTTPFile ¶
LoadGlobalVarsFromHTTPFile loads global variables from the postbear.http file
func SaveHTTPFile ¶
func SaveHTTPFile(data *HTTPFileData, filename string) error
Save HTTPFileData to a .http file in the current working directory
Types ¶
type HTTPFileData ¶
type HTTPFileData struct {
Requests []HTTPRequest
GlobalVars map[string]string
}
func LoadHTTPFile ¶
func LoadHTTPFile(filename string) (*HTTPFileData, error)
LoadHTTPFile loads the HTTPFileData (requests and global vars) from a .http file
func (*HTTPFileData) ToHTTPFileFormat ¶
func (h *HTTPFileData) ToHTTPFileFormat() string
Serialize HTTPFileData to .http file format
type HTTPRequest ¶
type ParamsTable ¶
type ParamsTable struct {
Rows []TableRow
FocusedRow int
FocusedCol int // 0 for key, 1 for value
// contains filtered or unexported fields
}
func NewParamsTable ¶
func NewParamsTable() ParamsTable
func (*ParamsTable) AddRow ¶
func (t *ParamsTable) AddRow()
func (*ParamsTable) SetFromQueryString ¶
func (t *ParamsTable) SetFromQueryString(query string)
func (*ParamsTable) ToMap ¶
func (t *ParamsTable) ToMap() map[string]string
func (*ParamsTable) ToQueryString ¶
func (t *ParamsTable) ToQueryString() string
func (*ParamsTable) View ¶
func (t *ParamsTable) View() string
Click to show internal directories.
Click to hide internal directories.