MCPcopy Create free account
hub / github.com/SpectoLabs/hoverfly / SetPACFile

Function SetPACFile

hoverctl/wrapper/pac.go:7–21  ·  view source on GitHub ↗
(target configuration.Target)

Source from the content-addressed store, hash-verified

5)
6
7func SetPACFile(target configuration.Target) error {
8 response, err := doRequest(target, "PUT", v2ApiPac, target.PACFile, nil)
9 if err != nil {
10 return err
11 }
12
13 defer response.Body.Close()
14
15 err = handleResponseError(response, "Could not set PAC file")
16 if err != nil {
17 return err
18 }
19
20 return nil
21}

Callers 3

StartFunction · 0.85

Calls 2

handleResponseErrorFunction · 0.85
doRequestFunction · 0.70

Tested by 2