Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 88 for responses (0.13 sec)

  1. istioctl/pkg/internaldebug/internal-debug_test.go

    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  2. pkg/test/echo/server/forwarder/grpc.go

    	// When the underlying HTTP2 request returns status 404, GRPC
    	// request does not return an error in grpc-go.
    	// Instead, it just returns an empty response
    	for _, line := range strings.Split(resp.GetMessage(), "\n") {
    		if line != "" {
    			echo.WriteBodyLine(&outBuffer, requestID, line)
    		}
    	}
    	for k, v := range header {
    		for _, vv := range v {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Apr 14 19:45:43 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. istioctl/pkg/proxystatus/proxystatus_test.go

    		_, _, codec := cmdtesting.NewExternalScheme()
    		tf.UnstructuredClient = &fake.RESTClient{
    			NegotiatedSerializer: resource.UnstructuredPlusDefaultContentConfig().NegotiatedSerializer,
    			Resp: &http.Response{
    				StatusCode: http.StatusOK,
    				Header:     cmdtesting.DefaultHeader(),
    				Body: cmdtesting.ObjBody(codec,
    					cmdtesting.NewInternalType("", "", "foo")),
    			},
    		}
    		return tf
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 15 08:28:50 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. pkg/test/echo/server/forwarder/tcp.go

    		// the message is sent last - when we get the whole message we can stop reading
    		if err == io.EOF || strings.Contains(resBuffer.String(), message) {
    			break
    		}
    	}
    
    	// format the output for forwarder response
    	for _, line := range strings.Split(resBuffer.String(), "\n") {
    		if line != "" {
    			echo.WriteBodyLine(&msgBuilder, requestID, line)
    		}
    	}
    
    	msg := msgBuilder.String()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jul 20 19:13:32 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  5. tools/istio-iptables/pkg/validation/validator.go

    			ServerOriginalIP:    serverIP,
    			ServerReadyBarrier:  make(chan ReturnCode, 1),
    			ProbeTimeout:        config.ProbeTimeout,
    		},
    	}
    }
    
    // Write human readable response
    func echo(conn io.WriteCloser, echo []byte) {
    	_, _ = conn.Write(echo)
    	_ = conn.Close()
    }
    
    func restoreOriginalAddress(l net.Listener, config *Config, c chan<- ReturnCode) {
    	defer l.Close()
    	for {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Nov 01 04:37:36 UTC 2023
    - 5.5K bytes
    - Viewed (0)
  6. pilot/pkg/xds/xdsgen.go

    	}
    	return g
    }
    
    // Push an XDS resource for the given connection. Configuration will be generated
    // based on the passed in generator. Based on the updates field, generators may
    // choose to send partial or even no response if there are no changes.
    func (s *DiscoveryServer) pushXds(con *Connection, w *model.WatchedResource, req *model.PushRequest) error {
    	if w == nil {
    		return nil
    	}
    	gen := s.findGenerator(w.TypeUrl, con)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon May 13 20:55:20 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. pkg/xds/server_test.go

    				ResourceNames: []string{},
    			},
    			response: false,
    		},
    	}
    
    	for _, tt := range tests {
    		t.Run(tt.name, func(t *testing.T) {
    			if response, _ := ShouldRespond(tt.proxy, "test", tt.request); response != tt.response {
    				t.Fatalf("Unexpected value for response, expected %v, got %v", tt.response, response)
    			}
    			if tt.name != "reconnect" && tt.response {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Apr 30 00:26:45 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. cni/pkg/plugin/cnieventclient.go

    	if err != nil {
    		return err
    	}
    	var response *http.Response
    	response, err = cniClient.client.Post(cniClient.url, "application/json", bytes.NewBuffer(eventData))
    	if err != nil {
    		return err
    	}
    	defer response.Body.Close()
    
    	if response.StatusCode != http.StatusOK {
    		return fmt.Errorf("unable to push CNI event, error was %d", response.StatusCode)
    	}
    
    	return nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jan 26 20:34:28 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. pkg/envoy/admin.go

    	}
    	return buffer, nil
    }
    
    func doHTTPPost(requestURL, contentType, body string) (*bytes.Buffer, error) {
    	response, err := http.Post(requestURL, contentType, strings.NewReader(body))
    	if err != nil {
    		return nil, err
    	}
    	defer func() { _ = response.Body.Close() }()
    
    	var b bytes.Buffer
    	if _, err := io.Copy(&b, response.Body); err != nil {
    		return nil, err
    	}
    	return &b, nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 19 20:22:09 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  10. pkg/test/framework/components/echo/sidecar.go

    	Config() (*admin.ConfigDump, error)
    	ConfigOrFail(t test.Failer) *admin.ConfigDump
    
    	// WaitForConfig queries the Envoy configuration an executes the given accept handler. If the
    	// response is not accepted, the request will be retried until either a timeout or a response
    	// has been accepted.
    	WaitForConfig(accept func(*admin.ConfigDump) (bool, error), options ...retry.Option) error
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 03:49:49 UTC 2023
    - 1.9K bytes
    - Viewed (0)
Back to top