Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 22 for GetReq (0.2 sec)

  1. src/net/http/httputil/dump_test.go

    	for i, tt := range dumpTests {
    		if tt.Req != nil && tt.GetReq != nil || tt.Req == nil && tt.GetReq == nil {
    			t.Errorf("#%d: either .Req(%p) or .GetReq(%p) can be set/nil but not both", i, tt.Req, tt.GetReq)
    			continue
    		}
    
    		freshReq := func(ti dumpTest) *http.Request {
    			req := ti.Req
    			if req == nil {
    				req = ti.GetReq()
    			}
    
    			if req.Header == nil {
    				req.Header = make(http.Header)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 06 17:34:07 UTC 2022
    - 12.5K bytes
    - Viewed (0)
  2. src/net/http/httputil/reverseproxy_test.go

    	frontendClient := frontend.Client()
    
    	getReq, _ := http.NewRequest("GET", frontend.URL, nil)
    	getReq.Host = "some-name"
    	getReq.Header.Set("Connection", "close, TE")
    	getReq.Header.Add("Te", "foo")
    	getReq.Header.Add("Te", "bar, trailers")
    	getReq.Header.Set("Proxy-Connection", "should be deleted")
    	getReq.Header.Set("Upgrade", "foo")
    	getReq.Close = true
    	res, err := frontendClient.Do(getReq)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 54.6K bytes
    - Viewed (0)
  3. test/typeparam/issue51303.out

    xe [1]
    ye [2 3]
    x [[1]]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 19:38:22 UTC 2022
    - 40 bytes
    - Viewed (0)
  4. test/typeparam/issue51303.go

    			fmt.Println("x", x)
    			if x.Equal(xe, ye) {
    				fmt.Println("appending")
    				z = append(z, xe)
    				continue outer
    			}
    		}
    	}
    	return z
    }
    
    func SetEq[S []E, E comparable](x, y S) bool {
    	fmt.Println("SetEq", x, y)
    outer:
    	for _, xe := range x {
    		for _, ye := range y {
    			if xe == ye {
    				continue outer
    			}
    		}
    		return false // xs wasn't found in y
    	}
    	return true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 01 19:45:34 UTC 2022
    - 1.1K bytes
    - Viewed (0)
  5. src/internal/bytealg/equal_386.s

    	ADDL	$4, SI
    	ADDL	$4, DI
    	SUBL	$4, BX
    	CMPL	CX, DX
    	JEQ	bigloop
    	MOVB	$0, (AX)
    	RET
    
    	// remaining 0-4 bytes
    leftover:
    	MOVL	-4(SI)(BX*1), CX
    	MOVL	-4(DI)(BX*1), DX
    	CMPL	CX, DX
    	SETEQ	(AX)
    	RET
    
    small:
    	CMPL	BX, $0
    	JEQ	equal
    
    	LEAL	0(BX*8), CX
    	NEGL	CX
    
    	MOVL	SI, DX
    	CMPB	DX, $0xfc
    	JA	si_high
    
    	// load at SI won't cross a page boundary.
    	MOVL	(SI), SI
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 23 21:22:58 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. src/internal/runtime/atomic/atomic_amd64.s

    	MOVL	new+12(FP), CX
    	LOCK
    	CMPXCHGL	CX, 0(BX)
    	SETEQ	ret+16(FP)
    	RET
    
    // bool	·Cas64(uint64 *val, uint64 old, uint64 new)
    // Atomically:
    //	if(*val == old){
    //		*val = new;
    //		return 1;
    //	} else {
    //		return 0;
    //	}
    TEXT ·Cas64(SB), NOSPLIT, $0-25
    	MOVQ	ptr+0(FP), BX
    	MOVQ	old+8(FP), AX
    	MOVQ	new+16(FP), CX
    	LOCK
    	CMPXCHGQ	CX, 0(BX)
    	SETEQ	ret+24(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  7. src/internal/bytealg/equal_amd64.s

    	ADDQ	$8, DI
    	SUBQ	$8, BX
    	CMPQ	CX, DX
    	JEQ	bigloop
    	XORQ	AX, AX	// return 0
    	RET
    
    	// remaining 0-8 bytes
    leftover:
    	MOVQ	-8(SI)(BX*1), CX
    	MOVQ	-8(DI)(BX*1), DX
    	CMPQ	CX, DX
    	SETEQ	AX
    	RET
    
    small:
    	CMPQ	BX, $0
    	JEQ	equal
    
    	LEAQ	0(BX*8), CX
    	NEGQ	CX
    
    	CMPB	SI, $0xf8
    	JA	si_high
    
    	// load at SI won't cross a page boundary.
    	MOVQ	(SI), SI
    	JMP	si_finish
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 17 16:34:40 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  8. src/internal/runtime/atomic/atomic_386.s

    	MOVL	new_hi+16(FP), CX
    	LOCK
    	CMPXCHG8B	0(BP)
    	SETEQ	ret+20(FP)
    	RET
    
    // bool Casp1(void **p, void *old, void *new)
    // Atomically:
    //	if(*p == old){
    //		*p = new;
    //		return 1;
    //	}else
    //		return 0;
    TEXT ·Casp1(SB), NOSPLIT, $0-13
    	MOVL	ptr+0(FP), BX
    	MOVL	old+4(FP), AX
    	MOVL	new+8(FP), CX
    	LOCK
    	CMPXCHGL	CX, 0(BX)
    	SETEQ	ret+12(FP)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/AMD64.rules

    // Absorb flag constants into SETxx ops.
    ((SETEQ|SETLE|SETGE|SETBE|SETAE) (FlagEQ))     => (MOVLconst [1])
    ((SETNE|SETL|SETG|SETB|SETA)     (FlagEQ))     => (MOVLconst [0])
    ((SETNE|SETL|SETLE|SETB|SETBE)   (FlagLT_ULT)) => (MOVLconst [1])
    ((SETEQ|SETG|SETGE|SETA|SETAE)   (FlagLT_ULT)) => (MOVLconst [0])
    ((SETNE|SETL|SETLE|SETA|SETAE)   (FlagLT_UGT)) => (MOVLconst [1])
    ((SETEQ|SETG|SETGE|SETB|SETBE)   (FlagLT_UGT)) => (MOVLconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 93.9K bytes
    - Viewed (0)
  10. src/internal/bytealg/compare_386.s

    	MOVL	BX, (AX)
    	RET
    
    	// all the bytes in common are the same, so we just need
    	// to compare the lengths.
    allsame:
    	XORL	BX, BX
    	XORL	CX, CX
    	TESTL	DX, DX
    	SETLT	BX	// 1 if alen > blen
    	SETEQ	CX	// 1 if alen == blen
    	LEAL	-1(CX)(BX*2), BX	// 1,0,-1 result
    	MOVL	BX, (AX)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Aug 23 21:22:58 UTC 2021
    - 2.6K bytes
    - Viewed (0)
Back to top