Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for Response_ (0.2 sec)

  1. tests/test_application.py

        assert "redoc@next" in response.text
    
    
    def test_enum_status_code_response():
        response = client.get("/enum-status-code")
        assert response.status_code == 201, response.text
        assert response.json() == "foo bar"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 21:56:59 UTC 2024
    - 52.2K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    	}
    }
    
    type failingRoundTripper struct{}
    
    func (failingRoundTripper) RoundTrip(*http.Request) (*http.Response, error) {
    	return nil, errors.New("some error")
    }
    
    type staticResponseRoundTripper struct{ res *http.Response }
    
    func (rt staticResponseRoundTripper) RoundTrip(*http.Request) (*http.Response, error) {
    	return rt.res, nil
    }
    
    func TestReverseProxyErrorHandler(t *testing.T) {
    	tests := []struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. src/net/http/transport.go

    	// OnProxyConnectResponse is called when the Transport gets an HTTP response from
    	// a proxy for a CONNECT request. It's called before the check for a 200 OK response.
    	// If it returns an error, the request fails with that error.
    	OnProxyConnectResponse func(ctx context.Context, proxyURL *url.URL, connectReq *Request, connectRes *Response) error
    
    	// DialContext specifies the dial function for creating unencrypted TCP connections.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
  4. tests/integration/ambient/baseline_test.go

    	// Check that each response saw one of the workload IPs for the src echo instance
    	addresses := sets.New(src.WorkloadsOrFail(t).Addresses()...)
    	return check.Each(func(response echot.Response) error {
    		if !addresses.Contains(response.IP) {
    			return fmt.Errorf("expected original source (%v) to be propogated, but got %v", addresses.UnsortedList(), response.IP)
    		}
    		return nil
    	})
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Jun 12 00:07:28 UTC 2024
    - 78.4K bytes
    - Viewed (0)
  5. cmd/bucket-handlers.go

    	if err != nil {
    		writeErrorResponse(ctx, w, toAPIError(ctx, err), r.URL)
    		return
    	}
    	// generate response
    	response := generateListMultipartUploadsResponse(bucket, listMultipartsInfo, encodingType)
    	encodedSuccessResponse := encodeResponse(response)
    
    	// write success response.
    	writeSuccessResponseXML(w, encodedSuccessResponse)
    }
    
    // ListBucketsHandler - GET Service.
    // -----------
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri Jun 14 13:28:35 UTC 2024
    - 61.2K bytes
    - Viewed (0)
  6. src/net/http/client_test.go

    		}
    	}
    }
    
    // issue15577Tripper returns a Response with a redirect response
    // header and doesn't populate its Response.Request field.
    type issue15577Tripper struct{}
    
    func (issue15577Tripper) RoundTrip(*Request) (*Response, error) {
    	resp := &Response{
    		StatusCode: 303,
    		Header:     map[string][]string{"Location": {"http://www.example.com/"}},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 21:30:50 UTC 2024
    - 63.8K bytes
    - Viewed (0)
  7. src/main/java/jcifs/smb/SmbFile.java

                }
                else {
                    SmbComOpenAndXResponse response = new SmbComOpenAndXResponse(config);
                    h.send(new SmbComOpenAndX(config, uncPath, access, sharing, flags, attrs, null), response);
                    this.fileLocator.updateType(response.getFileType());
                    info = response;
                    fileSize = response.getDataSize();
    
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu May 23 01:50:13 UTC 2024
    - 82.3K bytes
    - Viewed (1)
  8. pilot/pkg/model/telemetry_logging_test.go

    				},
    				Filter: &tpb.AccessLogging_Filter{
    					Expression: "response.code >= 400",
    				},
    			},
    		},
    	}
    	code500filter := &tpb.Telemetry{
    		AccessLogging: []*tpb.AccessLogging{
    			{
    				Providers: []*tpb.ProviderRef{
    					{
    						Name: "envoy-json",
    					},
    				},
    				Filter: &tpb.AccessLogging_Filter{
    					Expression: "response.code >= 500",
    				},
    			},
    		},
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 14 04:34:30 UTC 2024
    - 54K bytes
    - Viewed (0)
  9. cmd/test-utils_test.go

    	// HEAD HTTP Request doesn't contain body in its response,
    	// for other type of HTTP requests compare the response body content with the expected one.
    	if req.Method != http.MethodHead {
    		// read the response body.
    		actualContent, err := io.ReadAll(rec.Body)
    		if err != nil {
    			t.Fatalf("MinIO %s: Failed parsing response body: <ERROR> %v", instanceType, err)
    		}
    
    		actualError := &APIErrorResponse{}
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Mon Jun 10 15:50:49 UTC 2024
    - 76.9K bytes
    - Viewed (0)
  10. pkg/kubelet/server/server_test.go

    }
    
    type fakeAuth struct {
    	authenticateFunc func(*http.Request) (*authenticator.Response, bool, error)
    	attributesFunc   func(user.Info, *http.Request) authorizer.Attributes
    	authorizeFunc    func(authorizer.Attributes) (authorized authorizer.Decision, reason string, err error)
    }
    
    func (f *fakeAuth) AuthenticateRequest(req *http.Request) (*authenticator.Response, bool, error) {
    	return f.authenticateFunc(req)
    }
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 51.5K bytes
    - Viewed (0)
Back to top