mirror of
				https://github.com/coredns/coredns.git
				synced 2025-10-31 02:03:20 -04:00 
			
		
		
		
	Use context.Context
Rename the old Context to State and use context.Context in the middleware for intra-middleware communication and more.
This commit is contained in:
		| @@ -1,15 +1,6 @@ | ||||
| package file | ||||
|  | ||||
| import ( | ||||
| 	"errors" | ||||
| 	"net/http" | ||||
| 	"net/http/httptest" | ||||
| 	"os" | ||||
| 	"path/filepath" | ||||
| 	"strings" | ||||
| 	"testing" | ||||
| ) | ||||
|  | ||||
| /* | ||||
| var testDir = filepath.Join(os.TempDir(), "caddy_testdir") | ||||
| var ErrCustom = errors.New("Custom Error") | ||||
|  | ||||
| @@ -323,3 +314,4 @@ func TestServeHTTPFailingStat(t *testing.T) { | ||||
| 		} | ||||
| 	} | ||||
| } | ||||
| */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user