Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/qustavo/httplab
/ functions
Functions
114 in github.com/qustavo/httplab
⨍
Functions
114
◇
Types & classes
15
↓ 20 callers
Method
Next
Next returns the next point in the set
ui/split.go:39
↓ 16 callers
Method
Info
Info prints information on the InfoView.
ui/ui.go:313
↓ 13 callers
Method
Get
Get gets the cursor position.
ui/ui.go:72
↓ 11 callers
Method
closePopup
(g *gocui.Gui, viewname string)
ui/ui.go:500
↓ 10 callers
Method
Index
Index retrieves the index of the current item in the response list.
response.go:326
↓ 9 callers
Method
Get
Get retrieves a specific response by name from the response list.
response.go:335
↓ 8 callers
Method
Cur
Cur retrieves the current response from the response list.
response.go:323
↓ 8 callers
Method
Set
Set sets the cursor position.
ui/ui.go:80
↓ 7 callers
Method
Current
Current returns the current point in the set
ui/split.go:50
↓ 7 callers
Method
Fixed
Fixed defines a set of fixed or absolute points
ui/split.go:19
↓ 7 callers
Function
NewResponse
NewResponse configures a new response. An empty status will be interpreted as 200 OK.
response.go:173
↓ 7 callers
Function
NewSplit
NewSplit returns a new Split
ui/split.go:14
↓ 7 callers
Method
Write
Write flushes the body into the ResponseWriter, hence sending it over the wire.
response.go:216
↓ 6 callers
Method
setView
(g *gocui.Gui, view string)
ui/ui.go:466
↓ 5 callers
Method
Add
Add appends a response item to the list. You need to supply a key for the item.
response.go:338
↓ 5 callers
Method
Len
Len reports the length of the response list.
response.go:329
↓ 5 callers
Method
Relative
Relative defines a set of relative points
ui/split.go:29
↓ 5 callers
Function
newEditor
(ui *UI, g *gocui.Gui, handler gocui.Editor)
ui/editor.go:16
↓ 5 callers
Function
withColor
(color int, text string)
dump.go:28
↓ 4 callers
Method
AddRequest
AddRequest adds a new request to the UI.
ui/ui.go:165
↓ 4 callers
Function
DumpRequest
DumpRequest pretty prints an http.Request
dump.go:53
↓ 4 callers
Method
Next
Next iterates to the next item in the response list.
response.go:317
↓ 4 callers
Method
Payload
Payload reads out a []byte payload according to it's configuration in Body.BodyMode.
response.go:46
↓ 4 callers
Function
getViewBuffer
(g *gocui.Gui, view string)
ui/ui.go:398
↓ 4 callers
Method
openPopup
(g *gocui.Gui, viewname string, x, y int)
ui/ui.go:515
↓ 4 callers
Method
renderBody
(g *gocui.Gui)
ui/ui.go:710
↓ 3 callers
Function
Decolorize
Decolorize remove the color escape sequences from a []byte encoded string
dump.go:17
↓ 3 callers
Method
Load
Load loads a response list from a local JSON document.
response.go:266
↓ 3 callers
Function
NewResponsesList
NewResponsesList creates a new empty response list and returns it.
response.go:234
↓ 3 callers
Method
Prev
Prev iterates to the previous item in the response list.
response.go:320
↓ 3 callers
Method
prevRequest
(g *gocui.Gui)
ui/ui.go:373
↓ 3 callers
Method
updateRequest
(g *gocui.Gui)
ui/ui.go:183
↓ 2 callers
Method
Apply
(ui *UI, g *gocui.Gui)
ui/bindings.go:24
↓ 2 callers
Method
Del
Del removes an item spceified by its key from the response list. It returns false if the item didn't exist at all.
response.go:346
↓ 2 callers
Function
ExpandPath
ExpandPath expands a given path by replacing '~' with $HOME of the current user.
response.go:359
↓ 2 callers
Method
Help
()
ui/bindings.go:48
↓ 2 callers
Method
Keys
Keys retrieves an []string of all keys in the response list.
response.go:332
↓ 2 callers
Method
Response
Response returns the current response setting.
ui/ui.go:353
↓ 2 callers
Method
Save
Save saves the current response list to a JSON document on local disk.
response.go:286
↓ 2 callers
Method
SetFile
SetFile set a new source file for the body, if it exists.
response.go:85
↓ 2 callers
Method
currentResponse
(g *gocui.Gui)
ui/ui.go:406
↓ 2 callers
Function
newTestUI
(t *testing.T)
ui/ui_test.go:17
↓ 2 callers
Method
nextRequest
(g *gocui.Gui)
ui/ui.go:386
↓ 2 callers
Function
openConfigFile
(path string)
response.go:366
↓ 2 callers
Method
openSavePopup
(g *gocui.Gui, title string, fn func(*gocui.Gui, string) error)
ui/ui.go:631
↓ 2 callers
Method
reset
()
response.go:238
↓ 2 callers
Method
updateResponse
(g *gocui.Gui)
ui/ui.go:431
↓ 1 callers
Method
Display
Display displays arbitraty info into a given view.
ui/ui.go:337
↓ 1 callers
Method
Edit
(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)
ui/editor.go:24
↓ 1 callers
Method
Init
Init initializes the UI.
ui/ui.go:114
↓ 1 callers
Method
Layout
Layout sets the layout
ui/ui.go:213
↓ 1 callers
Function
New
New returns a new UI with default values specified on the Response.
ui/ui.go:104
↓ 1 callers
Function
NewCursors
NewCursors returns a new Cursor.
ui/ui.go:62
↓ 1 callers
Function
NewHandler
NewHandler returns a new http.Handler
cmd/httplab/main.go:24
↓ 1 callers
Method
Restore
Restore restores the cursor position.
ui/ui.go:67
↓ 1 callers
Method
String
String to satisfy interface fmt.Stringer
response.go:21
↓ 1 callers
Function
Version
Version prints the version and exits
cmd/httplab/main.go:60
↓ 1 callers
Method
createPopupView
(g *gocui.Gui, viewname string, w, h int)
ui/ui.go:488
↓ 1 callers
Function
defaultConfigPath
()
cmd/httplab/main.go:38
↓ 1 callers
Method
load
(path string)
response.go:245
↓ 1 callers
Function
max
(a, b int)
ui/ui.go:50
↓ 1 callers
Function
newResponse
(args *cmdArgs)
cmd/httplab/main.go:121
↓ 1 callers
Method
nextBodyMode
(g *gocui.Gui)
ui/ui.go:757
↓ 1 callers
Method
nextView
(g *gocui.Gui)
ui/ui.go:357
↓ 1 callers
Method
openBodyFilePopup
(g *gocui.Gui)
ui/ui.go:724
↓ 1 callers
Method
prevView
(g *gocui.Gui)
ui/ui.go:365
↓ 1 callers
Method
resetRequests
(g *gocui.Gui)
ui/ui.go:195
↓ 1 callers
Method
restoreResponse
(g *gocui.Gui, r *httplab.Response)
ui/ui.go:443
↓ 1 callers
Function
run
(args cmdArgs, middleware func(next http.Handler) http.Handler)
cmd/httplab/main.go:130
↓ 1 callers
Method
saveRequestPopup
(g *gocui.Gui)
ui/ui.go:678
↓ 1 callers
Method
saveResponsePopup
(g *gocui.Gui)
ui/ui.go:659
↓ 1 callers
Method
setResponseView
(g *gocui.Gui, x0, y0, x1, y1 int)
ui/ui.go:254
↓ 1 callers
Function
sortedHeaderKeys
(req *http.Request)
dump.go:79
↓ 1 callers
Method
toggleHelp
(g *gocui.Gui, help string)
ui/ui.go:530
↓ 1 callers
Method
toggleLineWrap
(g *gocui.Gui)
ui/ui.go:767
↓ 1 callers
Method
toggleResponseBuilder
(g *gocui.Gui)
ui/ui.go:622
↓ 1 callers
Method
toggleResponsesLoader
(g *gocui.Gui)
ui/ui.go:546
↓ 1 callers
Function
valueOrDefault
(value, def string)
dump.go:21
↓ 1 callers
Function
writeBody
(buf *bytes.Buffer, req *http.Request)
dump.go:32
Method
Edit
(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)
ui/editor.go:56
Method
Edit
(v *gocui.View, key gocui.Key, ch rune, mod gocui.Modifier)
ui/editor.go:77
Method
Info
Info returns some basic info on the body.
response.go:64
Method
MarshalJSON
MarshalJSON serializes the response into a JSON []byte.
response.go:143
Function
TestDecolorization
(t *testing.T)
dump_test.go:60
Function
TestDumpRequestHeaders
(t *testing.T)
dump_test.go:40
Function
TestDumpRequestWithJSON
(t *testing.T)
dump_test.go:16
Function
TestExpandPathExpansion
(t *testing.T)
response_test.go:167
Function
TestLoadFromJSON
(t *testing.T)
response_test.go:137
Function
TestResponseHeaders
(t *testing.T)
response_test.go:43
Function
TestResponseStatus
(t *testing.T)
response_test.go:16
Function
TestResponseWrite
(t *testing.T)
response_test.go:62
Function
TestResponsesList
(t *testing.T)
response_test.go:81
Function
TestSplit
(t *testing.T)
ui/split_test.go:9
Function
TestUIAddRequestSavesInOrder
(t *testing.T)
ui/ui_test.go:27
Function
TestUIScrollRequests
(t *testing.T)
ui/ui_test.go:47
Method
UnmarshalJSON
UnmarshalJSON inflates the Response from []byte representing JSON.
response.go:105
Function
main
()
cmd/httplab/main.go:78
Function
onClosePopup
(ui *UI)
ui/bindings.go:160
Function
onNextRequest
(ui *UI)
ui/bindings.go:154
Function
onNextView
(ui *UI)
ui/bindings.go:82
next →
1–100 of 114, ranked by callers