Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for logRequest (0.16 sec)

  1. samples/extauthz/cmd/extauthz/main.go

    }
    
    func (s *extAuthzServerV2) logRequest(allow string, request *authv2.CheckRequest) {
    	httpAttrs := request.GetAttributes().GetRequest().GetHttp()
    	log.Printf("[gRPCv2][%s]: %s%s, attributes: %v\n", allow, httpAttrs.GetHost(),
    		httpAttrs.GetPath(),
    		request.GetAttributes())
    }
    
    func (s *extAuthzServerV2) allow(request *authv2.CheckRequest) *authv2.CheckResponse {
    	s.logRequest("allowed", request)
    	return &authv2.CheckResponse{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 15 18:23:48 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/LoggingHandler.groovy

        private final Set<String> authenticationAttempts
        private final Set<Map<String, String>> allHeaders
        private final boolean logRequests
    
        LoggingHandler(Set<String> authenticationAttempts, Set<Map<String, String>> allHeaders, boolean logRequests) {
            this.logRequests = logRequests
            this.authenticationAttempts = authenticationAttempts
            this.allHeaders = allHeaders
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/HttpServerFixture.groovy

        }
    
        Set<Map<String, String>> getAllHeaders() {
            return allHeaders
        }
    
        boolean getLogRequests() {
            return logRequests
        }
    
        void setLogRequests(boolean logRequests) {
            this.logRequests = logRequests
        }
    
        /**
         * Use the hostname for the server's URL instead of the IP.
         */
        void useHostname() {
            this.useHostnameForUrl = true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/buildcache/AbstractTaskOutputCachingPerformanceTest.groovy

        def setup() {
            runner.cleanTasks = ["clean"]
            runner.args = ["-D${StartParameterBuildOptions.BuildCacheOption.GRADLE_PROPERTY}=true"]
            buildCacheServer.logRequests = false
            cacheDir = temporaryFolder.file("local-cache")
            runner.addBuildMutator { invocationSettings ->
                new BuildMutator() {
                    @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  5. pkg/test/echo/server/instance.go

    		return
    	}
    	mux.Handle("/metrics", LogRequests(exporter))
    	s.metricsServer = &http.Server{
    		Handler: mux,
    	}
    	if err := http.ListenAndServe(fmt.Sprintf(":%d", s.Metrics), mux); err != nil {
    		log.Errorf("metrics terminated with err: %v", err)
    	}
    }
    
    func LogRequests(next http.Handler) http.Handler {
    	return http.HandlerFunc(
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Jun 09 07:54:01 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  6. subprojects/diagnostics/src/integTest/groovy/org/gradle/api/reporting/model/DetailedModelReportIntegrationTest.groovy

        }
    
        def "can find the relative path when model configuration is applied from a remote http url"() {
            given:
            server.start()
            server.logRequests = false
    
            def modelFile = testDirectory.file("local-my-model.gradle")
            modelFile.text = """
            ${managedNumbers()}
    
            model {
                numbers(Numbers){
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 12 07:56:08 UTC 2021
    - 5.7K bytes
    - Viewed (0)
Back to top