- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 144 for methodSet (0.19 sec)
-
samples/jwt-server/src/main_test.go
server := NewJwtServer("", "") // Start the test server on random port. go server.runHTTP("localhost:0") // Prepare the HTTP request. httpClient := &http.Client{} httpReq, err := http.NewRequest(http.MethodGet, fmt.Sprintf("http://localhost:%d/jwtkeys", <-server.httpPort), nil) if err != nil { t.Fatalf(err.Error()) } resp, err := httpClient.Do(httpReq) if err != nil { t.Fatalf(err.Error()) }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 23 16:58:02 UTC 2023 - 2.2K bytes - Viewed (0) -
src/cmd/vet/testdata/method/method.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // This file contains the code to check canonical methods. package method import "fmt" type MethodTest int func (t *MethodTest) Scan(x fmt.ScanState, c byte) { // ERROR "should have signature Scan\(fmt\.ScanState, rune\) error"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Feb 20 15:46:42 UTC 2019 - 394 bytes - Viewed (0) -
src/cmd/go/testdata/script/load_test_pkg_err.txt
go list -e -test -deps d stdout golang.org/fake/d -- want_stdout -- d d.test d_test [d.test] -- go.mod -- module d go 1.16 -- d.go -- package d import "net/http" const d = http.MethodGet func Get() string { return d; } -- d2.go -- -- d_test.go -- package d_test import "testing" import "golang.org/fake/d"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 17 13:25:29 UTC 2020 - 484 bytes - Viewed (0) -
cmd/object-handlers-common.go
// If-None-Match func checkPreconditions(ctx context.Context, w http.ResponseWriter, r *http.Request, objInfo ObjectInfo, opts ObjectOptions) bool { // Return false for methods other than GET and HEAD. if r.Method != http.MethodGet && r.Method != http.MethodHead { return false } // If the object doesn't have a modtime (IsZero), or the modtime // is obviously garbage (Unix time == 0), then ignore modtimes
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Jun 10 15:31:51 UTC 2024 - 14.6K bytes - Viewed (0) -
pilot/pkg/xds/debug_test.go
verifySyncStatus(t, s.Discovery, node.ID, true, true) }) } func getSyncStatus(t *testing.T, server *xds.DiscoveryServer) []xds.SyncStatus { req, err := http.NewRequest(http.MethodGet, "/debug", nil) if err != nil { t.Fatal(err) } rr := httptest.NewRecorder() syncz := http.HandlerFunc(server.Syncz) syncz.ServeHTTP(rr, req) got := []xds.SyncStatus{}
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Fri Jan 12 18:20:36 UTC 2024 - 7.8K bytes - Viewed (0) -
docs/de/docs/how-to/extending-openapi.md
Eine `FastAPI`-Anwendung (-Instanz) verfügt über eine `.openapi()`-Methode, von der erwartet wird, dass sie das OpenAPI-Schema zurückgibt. Als Teil der Erstellung des Anwendungsobjekts wird eine *Pfadoperation* für `/openapi.json` (oder welcher Wert für den Parameter `openapi_url` gesetzt wurde) registriert. Diese gibt lediglich eine JSON-Response zurück, mit dem Ergebnis der Methode `.openapi()` der Anwendung.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Mar 14 16:44:05 UTC 2024 - 3.7K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/request_received_time_test.go
}) wrapped := withRequestReceivedTimestampWithClock(handler, testingclock.NewFakeClock(receivedTimestampExpected)) testRequest, err := http.NewRequest(http.MethodGet, "/api/v1/namespaces", nil) if err != nil { t.Fatalf("failed to create new http request - %v", err) } w := httptest.NewRecorder() wrapped.ServeHTTP(w, testRequest) if callCount != 1 {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Sep 15 09:52:18 UTC 2021 - 2K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/endpoints/filters/cachecontrol_test.go
handler := http.HandlerFunc(func(http.ResponseWriter, *http.Request) { //do nothing }) wrapped := WithCacheControl(handler) testRequest, err := http.NewRequest(http.MethodGet, test.path, nil) if err != nil { t.Fatal(err) } w := httptest.NewRecorder() if len(test.startingHeader) > 0 { w.Header().Set("Cache-Control", test.startingHeader) }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Aug 26 17:00:31 UTC 2019 - 1.7K bytes - Viewed (0) -
cmd/generic-handlers_test.go
t.Fatal("Test shouldn't fail for a possible net/rpc request.") } r = &http.Request{ Proto: "HTTP/1.1", Method: http.MethodGet, } if guessIsRPCReq(r) { t.Fatal("Test shouldn't report as net/rpc for a non net/rpc request.") } r = &http.Request{ Proto: "HTTP/1.1", Method: http.MethodGet, URL: &url.URL{Path: grid.RoutePath}, } if !guessIsRPCReq(r) { t.Fatal("Grid RPC path not detected") } }
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Thu Mar 28 17:44:56 UTC 2024 - 5.4K bytes - Viewed (0) -
istioctl/pkg/admin/istiodconfig_test.go
switch request.Method { case http.MethodGet: _, _ = writer.Write([]byte(getResponse)) } } func adsHandler(writer http.ResponseWriter, request *http.Request) { const getResponse = `{"name":"ads","description":"ads debugging","output_level":"info","stack_trace_level":"none","log_callers":false}` switch request.Method { case http.MethodGet: _, _ = writer.Write([]byte(getResponse)) } }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Jun 15 15:02:17 UTC 2023 - 6.2K bytes - Viewed (0)