Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 360 for resps (0.04 sec)

  1. staging/src/k8s.io/apimachinery/pkg/util/httpstream/spdy/roundtripper.go

    	upgradeHeader := strings.ToLower(resp.Header.Get(httpstream.HeaderUpgrade))
    	if (resp.StatusCode != http.StatusSwitchingProtocols) || !strings.Contains(connectionHeader, strings.ToLower(httpstream.HeaderUpgrade)) || !strings.Contains(upgradeHeader, strings.ToLower(HeaderSpdy31)) {
    		defer resp.Body.Close()
    		responseError := ""
    		responseErrorBytes, err := io.ReadAll(resp.Body)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 23 22:33:38 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  2. internal/config/identity/plugin/config.go

    	}
    
    	reqStartTime := time.Now()
    	resp, err := o.client.Do(req)
    	if err != nil {
    		o.serviceMetrics.accumRequestRTT(reqStartTime, 0, false)
    		return AuthNResponse{}, err
    	}
    	defer o.args.CloseRespFn(resp.Body)
    	reqDurNanos := time.Since(reqStartTime).Nanoseconds()
    	o.serviceMetrics.accumRequestRTT(reqStartTime, float64(reqDurNanos)/1e6, true)
    
    	switch resp.StatusCode {
    	case 200:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  3. src/net/rpc/jsonrpc/server.go

    	}
    	delete(c.pending, r.Seq)
    	c.mutex.Unlock()
    
    	if b == nil {
    		// Invalid request so no id. Use JSON null.
    		b = &null
    	}
    	resp := serverResponse{Id: b}
    	if r.Error == "" {
    		resp.Result = x
    	} else {
    		resp.Error = r.Error
    	}
    	return c.enc.Encode(resp)
    }
    
    func (c *serverCodec) Close() error {
    	return c.c.Close()
    }
    
    // ServeConn runs the JSON-RPC server on a single connection.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 3.2K bytes
    - Viewed (0)
  4. internal/config/policy/opa/config.go

    	if o.args.AuthToken != "" {
    		req.Header.Set("Authorization", o.args.AuthToken)
    	}
    
    	resp, err := o.client.Do(req)
    	if err != nil {
    		return false, err
    	}
    	defer o.args.CloseRespFn(resp.Body)
    
    	// Read the body to be saved later.
    	opaRespBytes, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return false, err
    	}
    
    	// Handle large OPA responses when OPA URL is of
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  5. internal/event/target/elasticsearch.go

    			}
    		}
    	}
    
    	if !found {
    		resp, err := c.Indices.Create(args.Index)
    		if err != nil {
    			return err
    		}
    		defer xhttp.DrainBody(resp.Body)
    		if resp.IsError() {
    			return fmt.Errorf("Create index err: %v", res)
    		}
    		return nil
    	}
    	return nil
    }
    
    func (c *esClientV7) ping(ctx context.Context, _ ElasticsearchArgs) (bool, error) {
    	resp, err := c.Ping(
    		c.Ping.WithContext(ctx),
    	)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. src/internal/fuzz/worker_test.go

    		args := fuzzArgs{
    			Limit:   int64(b.N) - i,
    			Timeout: workerFuzzDuration,
    		}
    		_, resp, _, err := w.client.fuzz(context.Background(), entry, args)
    		if err != nil {
    			b.Fatal(err)
    		}
    		if resp.Err != "" {
    			b.Fatal(resp.Err)
    		}
    		if resp.Count == 0 {
    			b.Fatal("worker did not make progress")
    		}
    		i += resp.Count
    	}
    }
    
    // newWorkerForTest creates and starts a worker process for testing or
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 4.8K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apimachinery/pkg/util/proxy/upgradeaware.go

    // This should be called on all responses before returning
    func removeCORSHeaders(resp *http.Response) {
    	resp.Header.Del("Access-Control-Allow-Credentials")
    	resp.Header.Del("Access-Control-Allow-Headers")
    	resp.Header.Del("Access-Control-Allow-Methods")
    	resp.Header.Del("Access-Control-Allow-Origin")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 04 19:10:30 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  8. pkg/test/echo/client.go

    		return c.conn.Close()
    	}
    	return nil
    }
    
    func (c *Client) Echo(ctx context.Context, request *proto.EchoRequest) (Response, error) {
    	resp, err := c.client.Echo(ctx, request)
    	if err != nil {
    		return Response{}, err
    	}
    	return parseResponse(resp.Message), nil
    }
    
    // ForwardEcho sends the given forward request and parses the response for easier processing. Only fails if the request fails.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Nov 14 20:23:34 UTC 2022
    - 4.1K bytes
    - Viewed (0)
  9. pkg/proxy/healthcheck/healthcheck_test.go

    		req, err := http.NewRequest("GET", "/healthz", nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		resp := httptest.NewRecorder()
    
    		handler.ServeHTTP(resp, req)
    
    		if resp.Code != status {
    			t.Errorf("expected status code %v, got %v", status, resp.Code)
    		}
    		var payload hcPayload
    		if err := json.Unmarshal(resp.Body.Bytes(), &payload); err != nil {
    			t.Fatal(err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 26 13:27:41 UTC 2024
    - 21.4K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/SmbFile.java

                        }
                    }
                }
    
                if( resp.isEndOfSearch || resp.numEntries == 0 ) {
                    break;
                }
    
                req.reset( resp.resumeKey, resp.lastName );
                resp.reset();
                send( req, resp );
            }
    
            try {
                send( new SmbComFindClose2( sid ), blank_resp() );
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Mon Mar 13 12:00:57 UTC 2023
    - 107.9K bytes
    - Viewed (0)
Back to top