MCPcopy Index your code
hub / github.com/cortesi/devd / newForwardEndpoint

Function newForwardEndpoint

route.go:39–46  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

37}
38
39func newForwardEndpoint(path string) (*forwardEndpoint, error) {
40 url, err := url.Parse(path)
41 if err != nil {
42 return nil, fmt.Errorf("Could not parse route URL: %s", err)
43 }
44 f := forwardEndpoint(*url)
45 return &f, nil
46}
47
48func (ep forwardEndpoint) String() string {
49 return "forward to " + ep.Scheme + "://" + ep.Host + ep.Path

Callers 3

tForwardEndpointFunction · 0.85
TestForwardEndpointFunction · 0.85
newRouteFunction · 0.85

Calls 1

forwardEndpointTypeAlias · 0.85

Tested by 2

tForwardEndpointFunction · 0.68
TestForwardEndpointFunction · 0.68