MCPcopy Index your code
hub / github.com/bootdotdev/bootdev / missingSaveVariablesForHTTPResult

Function missingSaveVariablesForHTTPResult

render/variables.go:58–70  ·  view source on GitHub ↗
(result api.HTTPRequestResult)

Source from the content-addressed store, hash-verified

56}
57
58func missingSaveVariablesForHTTPResult(result api.HTTPRequestResult) []variableEntry {
59 var entries []variableEntry
60 for _, responseVariable := range result.Request.ResponseVariables {
61 if result.Variables[responseVariable.Name] != "" {
62 continue
63 }
64 entries = append(entries, variableEntry{
65 name: responseVariable.Name,
66 description: "JSON Body " + responseVariable.Path,
67 })
68 }
69 return entries
70}
71
72func availableVariablesForHTTPResult(result api.HTTPRequestResult) (entries []variableEntry, expectsVariables bool) {
73 seen := map[string]bool{}

Callers 2

printHTTPRequestResultFunction · 0.85
TestHTTPVariableSectionsFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHTTPVariableSectionsFunction · 0.68