Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 94 of 94 for httpClient (0.61 sec)

  1. src/internal/godebug/godebug_test.go

    		got := tt.setting.Value()
    		if got != tt.want {
    			t.Errorf("get(%q, %q) = %q; want %q", tt.godebug, tt.setting.Name(), got, tt.want)
    		}
    	}
    }
    
    func TestMetrics(t *testing.T) {
    	const name = "http2client" // must be a real name so runtime will accept it
    
    	var m [1]metrics.Sample
    	m[0].Name = "/godebug/non-default-behavior/" + name + ":events"
    	metrics.Read(m[:])
    	if kind := m[0].Value.Kind(); kind != metrics.KindUint64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 4K bytes
    - Viewed (0)
  2. samples/bookinfo/src/productpage/productpage.py

    # You will see the REQUEST, including HEADERS and DATA, and RESPONSE with HEADERS but without DATA.
    # The only thing missing will be the response.body which is not logged.
    import http.client as http_client
    http_client.HTTPConnection.debuglevel = 0
    
    app = Flask(__name__)
    FlaskInstrumentor().instrument_app(app)
    logging.basicConfig(stream=sys.stdout, level=logging.INFO)
    requests_log = logging.getLogger("requests.packages.urllib3")
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jun 10 14:35:54 UTC 2024
    - 14.6K bytes
    - Viewed (1)
  3. src/runtime/metrics/doc.go

    		package due to a non-default GODEBUG=gotypesalias=... setting.
    
    	/godebug/non-default-behavior/http2client:events
    		The number of non-default behaviors executed by the net/http
    		package due to a non-default GODEBUG=http2client=... setting.
    
    	/godebug/non-default-behavior/http2server:events
    		The number of non-default behaviors executed by the net/http
    		package due to a non-default GODEBUG=http2server=... setting.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 22:58:43 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. src/net/http/transport.go

    	return t.DialTLS != nil || t.DialTLSContext != nil
    }
    
    var http2client = godebug.New("http2client")
    
    // onceSetNextProtoDefaults initializes TLSNextProto.
    // It must be called via t.nextProtoOnce.Do.
    func (t *Transport) onceSetNextProtoDefaults() {
    	t.tlsNextProtoWasNil = (t.TLSNextProto == nil)
    	if http2client.Value() == "0" {
    		http2client.IncNonDefault()
    		return
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 91K bytes
    - Viewed (0)
Back to top