MCPcopy
hub / github.com/qustavo/httplab / Get

Method Get

response.go:335–335  ·  view source on GitHub ↗

Get retrieves a specific response by name from the response list.

(key string)

Source from the content-addressed store, hash-verified

333
334// Get retrieves a specific response by name from the response list.
335func (rl *ResponsesList) Get(key string) *Response { return rl.List[key] }
336
337// Add appends a response item to the list. You need to supply a key for the item.
338func (rl *ResponsesList) Add(key string, r *Response) *ResponsesList {

Callers 4

TestResponsesListFunction · 0.95
TestLoadFromJSONFunction · 0.95
MarshalJSONMethod · 0.45
WriteMethod · 0.45

Calls

no outgoing calls

Tested by 2

TestResponsesListFunction · 0.76
TestLoadFromJSONFunction · 0.76