Rename ExecuteForAPI to ExecuteForOutline
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user