Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 116 for StatusCode (0.21 sec)

  1. docs/logging/README.md

      "time": "2024-05-09T07:38:10.449688982Z",
      "event": "",
      "trigger": "incoming",
      "api": {
        "name": "PutObject",
        "bucket": "testbucket",
        "object": "hosts",
        "status": "OK",
        "statusCode": 200,
        "rx": 401,
        "tx": 0,
        "timeToResponse": "13309747ns",
        "timeToResponseInNS": "13309747"
      },
      "remotehost": "127.0.0.1",
      "requestID": "17CDC1F4D7E69123",
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 09 17:15:03 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. cmd/http-stats.go

    		bh.httpStats[bucket] = hstats
    		return
    	} // else {
    	hstats.currentS3Requests.Dec(api) // decrement this once we have the response recorder.
    
    	hstats.totalS3Requests.Inc(api)
    	code := w.StatusCode
    
    	switch {
    	case code == 0:
    	case code == 499:
    		// 499 is a good error, shall be counted as canceled.
    		hstats.totalS3Canceled.Inc(api)
    	case code >= http.StatusBadRequest:
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 15 06:25:13 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Connection.kt

          } catch (e: IOException) {
            failConnection(e)
          }
        }
      }
    
      @Throws(IOException::class)
      internal fun writeSynReset(
        streamId: Int,
        statusCode: ErrorCode,
      ) {
        writer.rstStream(streamId, statusCode)
      }
    
      internal fun writeWindowUpdateLater(
        streamId: Int,
        unacknowledgedBytesRead: Long,
      ) {
        writerQueue.execute("$connectionName[$streamId] windowUpdate") {
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 32.6K bytes
    - Viewed (0)
  4. pkg/spiffe/spiffe.go

    			} else if resp == nil {
    				errMsg = fmt.Sprintf("Calling %s failed with nil response", endpoint)
    			} else if resp.StatusCode != http.StatusOK {
    				b := make([]byte, 1024)
    				n, _ := resp.Body.Read(b)
    				errMsg = fmt.Sprintf("Calling %s failed with unexpected status: %v, fetching bundle: %s",
    					endpoint, resp.StatusCode, string(b[:n]))
    			} else {
    				break
    			}
    
    			if startTime.Add(retryTimeout).Before(time.Now()) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. internal/config/identity/plugin/config.go

    	}
    	defer o.args.CloseRespFn(resp.Body)
    	reqDurNanos := time.Since(reqStartTime).Nanoseconds()
    	o.serviceMetrics.accumRequestRTT(reqStartTime, float64(reqDurNanos)/1e6, true)
    
    	switch resp.StatusCode {
    	case 200:
    		var result AuthNSuccessResponse
    		if err = json.NewDecoder(resp.Body).Decode(&result); err != nil {
    			return AuthNResponse{}, err
    		}
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/server/egressselector/egress_selector.go

    		return nil, fmt.Errorf("reading HTTP response from CONNECT to %s via proxy %s failed: %v",
    			addr, proxyAddress, err)
    	}
    	if res.StatusCode != 200 {
    		proxyConn.Close()
    		return nil, fmt.Errorf("proxy error from %s while dialing %s, code %d: %v",
    			proxyAddress, addr, res.StatusCode, res.Status)
    	}
    
    	// It's safe to discard the bufio.Reader here and return the
    	// original TCP conn directly because we only use this for
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Jun 29 15:48:39 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  7. pkg/scheduler/extender.go

    	resp, err := h.client.Do(req)
    	if err != nil {
    		return err
    	}
    	defer resp.Body.Close()
    
    	if resp.StatusCode != http.StatusOK {
    		return fmt.Errorf("failed %v with extender at URL %v, code %v", action, url, resp.StatusCode)
    	}
    
    	return json.NewDecoder(resp.Body).Decode(result)
    }
    
    // IsInterested returns true if at least one extended resource requested by
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 19:07:19 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. pilot/pkg/bootstrap/server_test.go

    		defer c.CloseIdleConnections()
    		resp, err := c.Get("http://" + s.httpAddr + "/validate")
    		assert.NoError(t, err)
    		// Validate returns 400 on no body; if we got this the request works
    		assert.Equal(t, resp.StatusCode, 400)
    		resp.Body.Close()
    	})
    	t.Run("h2", func(t *testing.T) {
    		c := http.Client{
    			Transport: &http2.Transport{
    				// Golang doesn't have first class support for h2c, so we provide some workarounds
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. pkg/test/echo/server/endpoint/http.go

    		// server won't become ready until all endpoints (including this one) report
    		// ready, the handler will return 503. This means that the endpoint is now ready.
    		if resp.StatusCode != http.StatusServiceUnavailable {
    			return fmt.Errorf("unexpected status code %d", resp.StatusCode)
    		}
    
    		// Server is up now, we're ready.
    		return nil
    	}, retry.Timeout(readyTimeout), retry.Delay(readyInterval))
    
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 23 16:20:31 UTC 2023
    - 12.8K bytes
    - Viewed (0)
  10. pilot/cmd/pilot-agent/status/server.go

    	)
    
    	resp, err := s.http.Do(req)
    	if err != nil {
    		return nil, cancel, "", fmt.Errorf("error scraping %s: %v", url, err)
    	}
    	if resp.StatusCode != http.StatusOK {
    		resp.Body.Close()
    		return nil, cancel, "", fmt.Errorf("error scraping %s, status code: %v", url, resp.StatusCode)
    	}
    	format := resp.Header.Get("Content-Type")
    	return resp.Body, cancel, format, nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 15:07:03 UTC 2024
    - 31.1K bytes
    - Viewed (1)
Back to top