Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for readRequests (0.2 sec)

  1. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/modelreader/impl/AnnotationCallInterceptionRequestReaderImpl.java

    public class AnnotationCallInterceptionRequestReaderImpl implements AnnotatedMethodReaderExtension {
    
        @Override
        public Collection<Result> readRequest(ExecutableElement input) {
            if (input.getKind() != ElementKind.METHOD) {
                return emptyList();
            }
    
            if (!input.getModifiers().containsAll(Arrays.asList(Modifier.STATIC, Modifier.PUBLIC))) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 15 09:48:42 UTC 2023
    - 13K bytes
    - Viewed (0)
  2. src/net/http/request_test.go

    		in:  "HEAD / HTTP/1.1\r\nHost: foo\r\nHost: bar\r\n\r\n\r\n\r\n",
    		err: "too many Host headers",
    	},
    }
    
    func TestReadRequestErrors(t *testing.T) {
    	for i, tt := range readRequestErrorTests {
    		req, err := ReadRequest(bufio.NewReader(strings.NewReader(tt.in)))
    		if err == nil {
    			if tt.err != "" {
    				t.Errorf("#%d: got nil err; want %q", i, tt.err)
    			}
    
    			if !reflect.DeepEqual(tt.header, req.Header) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 18:42:34 UTC 2024
    - 44K bytes
    - Viewed (0)
  3. src/net/http/httputil/dump.go

    	// goroutine exits if t.RoundTrip returns an error.
    	// See golang.org/issue/32571.
    	quitReadCh := make(chan struct{})
    	// Wait for the request before replying with a dummy response:
    	go func() {
    		req, err := http.ReadRequest(bufio.NewReader(pr))
    		if err == nil {
    			// Ensure all the body is read; otherwise
    			// we'll get a partial dump.
    			io.Copy(io.Discard, req.Body)
    			req.Body.Close()
    		}
    		select {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  4. src/net/http/httputil/persist.go

    		// returned.
    		err = lastbody.Close()
    		if err != nil {
    			sc.mu.Lock()
    			defer sc.mu.Unlock()
    			sc.re = err
    			return nil, err
    		}
    	}
    
    	req, err = http.ReadRequest(r)
    	sc.mu.Lock()
    	defer sc.mu.Unlock()
    	if err != nil {
    		if err == io.ErrUnexpectedEOF {
    			// A close from the opposing client is treated as a
    			// graceful close, even if there was some unparse-able
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 10 03:29:50 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  5. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/extensions/property/PropertyUpgradeAnnotatedMethodReader.java

        }
    
        private String getJavaInterceptorsClassName() {
            return JVM_BYTECODE_GENERATED_CLASS_NAME_FOR_PROPERTY_UPGRADES + "_" + projectName;
        }
    
        @Override
        public Collection<Result> readRequest(ExecutableElement method) {
            Optional<? extends AnnotationMirror> annotation = AnnotationUtils.findAnnotationMirror(method, ReplacesEagerProperty.class);
            if (!annotation.isPresent()) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  6. src/net/http/cgi/host_test.go

    		cgiMain()
    		os.Exit(0)
    	}
    
    	os.Exit(m.Run())
    }
    
    func newRequest(httpreq string) *http.Request {
    	buf := bufio.NewReader(strings.NewReader(httpreq))
    	req, err := http.ReadRequest(buf)
    	if err != nil {
    		panic("cgi: bogus http request in test: " + httpreq)
    	}
    	req.RemoteAddr = "1.2.3.4:1234"
    	return req
    }
    
    func runCgiTest(t *testing.T, h *Handler,
    	httpreq string,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 18:29:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  7. src/net/http/requestwrite_test.go

    			return &dumpConn{io.MultiWriter(&buf, pw), dr}, nil
    		},
    	}
    	defer t.CloseIdleConnections()
    
    	// Wait for the request before replying with a dummy response:
    	go func() {
    		req, err := ReadRequest(bufio.NewReader(pr))
    		if err == nil {
    			if onReadHeaders != nil {
    				onReadHeaders()
    			}
    			// Ensure all the body is read; otherwise
    			// we'll get a partial dump.
    			io.Copy(io.Discard, req.Body)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Sep 07 01:07:32 UTC 2022
    - 23.3K bytes
    - Viewed (0)
  8. src/net/http/server.go

    	c.r.setReadLimit(c.server.initialReadLimitSize())
    	if c.lastMethod == "POST" {
    		// RFC 7230 section 3 tolerance for old buggy clients.
    		peek, _ := c.bufr.Peek(4) // ReadRequest will get err below
    		c.bufr.Discard(numLeadingCRorLF(peek))
    	}
    	req, err := readRequest(c.bufr)
    	if err != nil {
    		if c.r.hitReadLimit() {
    			return nil, errTooLarge
    		}
    		return nil, err
    	}
    
    	if !http1ServerSupportsRequest(req) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 17:57:01 UTC 2024
    - 123.4K bytes
    - Viewed (0)
  9. src/net/http/transport_test.go

    	}()
    
    	c, err := ln.Accept()
    	if err != nil {
    		t.Fatalf("Accept: %v", err)
    	}
    	t.Cleanup(func() {
    		c.Close()
    	})
    	br := bufio.NewReader(c)
    	_, err = ReadRequest(br)
    	if err != nil {
    		t.Fatalf("ReadRequest: %v", err)
    	}
    	test.conn = c
    	test.reader = br
    	t.Cleanup(func() {
    		<-test.reqdone
    		tr.CloseIdleConnections()
    		got, _ := io.ReadAll(test.reader)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jun 06 21:59:21 UTC 2024
    - 192.6K bytes
    - Viewed (0)
  10. src/net/http/transfer.go

    	}
    
    	t.Chunked = true
    	return nil
    }
    
    // Determine the expected body length, using RFC 7230 Section 3.3. This
    // function is not a method, because ultimately it should be shared by
    // ReadResponse and ReadRequest.
    func fixLength(isResponse bool, status int, requestMethod string, header Header, chunked bool) (n int64, err error) {
    	isRequest := !isResponse
    	contentLens := header["Content-Length"]
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 21 22:14:00 UTC 2024
    - 31.1K bytes
    - Viewed (0)
Back to top