Rename ExecuteForAPI to ExecuteForOutline

This commit is contained in:
joncrangle
2023-11-30 01:13:27 -05:00
parent bc01028d2b
commit 2beeeca89f
2 changed files with 2 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ func Outline(path string, opts *ProxyOptions) fiber.Handler {
tx.APIOutline(), tx.APIOutline(),
). ).
SetFiberCtx(c). SetFiberCtx(c).
ExecuteForAPI() ExecuteForOutline()
if err != nil { if err != nil {
log.Fatal(err) log.Fatal(err)

View File

@@ -519,7 +519,7 @@ func (chain *ProxyChain) Execute() error {
// return chain.Context.SendStream(body) // return chain.Context.SendStream(body)
} }
func (chain *ProxyChain) ExecuteForAPI() (string, error) { func (chain *ProxyChain) ExecuteForOutline() (string, error) {
defer chain._reset() defer chain._reset()
body, err := chain._execute() body, err := chain._execute()
if err != nil { if err != nil {