Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for RawContent (0.29 sec)

  1. pkg/test/echo/response.go

    	RequestURL string
    	// Method used (for HTTP).
    	Method string
    	// Protocol used for the request.
    	Protocol string
    	// Alpn value (for HTTP).
    	Alpn string
    	// RawContent is the original unparsed content for this response
    	RawContent string
    	// ID is a unique identifier of the resource in the response
    	ID string
    	// URL is the url the request is sent to
    	URL string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Mar 01 01:05:45 UTC 2022
    - 3.9K bytes
    - Viewed (0)
  2. pkg/test/framework/components/authz/provider.go

    				if !strings.Contains(actual, value) {
    					return fmt.Errorf("status code %s, expected %s header `%s` to contain `%s`, value=`%s`, raw content=%s",
    						r.Code, hType, key, value, actual, r.RawContent)
    				}
    			}
    		}
    		return nil
    	})
    }
    
    func headerNotContains(hType echoClient.HeaderType, expected map[string][]string) echo.Checker {
    	return check.Each(func(r echoClient.Response) error {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Apr 23 16:02:21 UTC 2022
    - 5.9K bytes
    - Viewed (0)
  3. pkg/test/echo/parse.go

    	for i, output := range resp.Output {
    		responses[i] = parseResponse(output)
    		responses[i].RequestURL = req.Url
    	}
    	return responses
    }
    
    func parseResponse(output string) Response {
    	out := Response{
    		RawContent:      output,
    		RequestHeaders:  make(http.Header),
    		ResponseHeaders: make(http.Header),
    	}
    
    	match := requestIDFieldRegex.FindStringSubmatch(output)
    	if match != nil {
    		out.ID = match[1]
    	}
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 23 22:25:46 UTC 2022
    - 4.3K bytes
    - Viewed (0)
  4. src/encoding/asn1/asn1.go

    	IsCompound bool
    	Bytes      []byte
    	FullBytes  []byte // includes the tag and length
    }
    
    // RawContent is used to signal that the undecoded, DER data needs to be
    // preserved for a struct. To use it, the first field of the struct must have
    // this type. It's an error for any of the other fields to have this type.
    type RawContent []byte
    
    // Tagging
    
    // parseTagAndLength parses an ASN.1 tag and length pair from the given offset
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 31.8K bytes
    - Viewed (0)
  5. pkg/test/framework/components/echo/check/checkers.go

    func BodyContains(expected string) echo.Checker {
    	return Each(func(r echoClient.Response) error {
    		if !strings.Contains(r.RawContent, expected) {
    			return fmt.Errorf("want %q in body but not found: %s", expected, r.RawContent)
    		}
    		return nil
    	})
    }
    
    // Forbidden checks that the response indicates that the request was rejected by RBAC.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri Mar 03 16:19:07 UTC 2023
    - 17.5K bytes
    - Viewed (0)
  6. src/crypto/x509/pkix/pkix.go

    // TBSCertificateList represents the ASN.1 structure of the same name. See RFC
    // 5280, section 5.1.
    //
    // Deprecated: x509.RevocationList should be used instead.
    type TBSCertificateList struct {
    	Raw                 asn1.RawContent
    	Version             int `asn1:"optional,default:0"`
    	Signature           AlgorithmIdentifier
    	Issuer              RDNSequence
    	ThisUpdate          time.Time
    	NextUpdate          time.Time            `asn1:"optional"`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  7. src/encoding/asn1/marshal_test.go

    	A int
    }
    
    type twoIntStruct struct {
    	A int
    	B int
    }
    
    type bigIntStruct struct {
    	A *big.Int
    }
    
    type nestedStruct struct {
    	A intStruct
    }
    
    type rawContentsStruct struct {
    	Raw RawContent
    	A   int
    }
    
    type implicitTagTest struct {
    	A int `asn1:"implicit,tag:5"`
    }
    
    type explicitTagTest struct {
    	A int `asn1:"explicit,tag:5"`
    }
    
    type flagTest struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 10K bytes
    - Viewed (0)
  8. src/crypto/x509/x509.go

    // signature requests (see RFC 2986):
    
    type tbsCertificateRequest struct {
    	Raw           asn1.RawContent
    	Version       int
    	Subject       asn1.RawValue
    	PublicKey     publicKeyInfo
    	RawAttributes []asn1.RawValue `asn1:"tag:0"`
    }
    
    type certificateRequest struct {
    	Raw                asn1.RawContent
    	TBSCSR             tbsCertificateRequest
    	SignatureAlgorithm pkix.AlgorithmIdentifier
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 09:20:15 UTC 2024
    - 82K bytes
    - Viewed (0)
  9. src/encoding/asn1/asn1_test.go

    	var cert Certificate
    	if _, err := Unmarshal(derEncodedPaypalNULCertBytes, &cert); err == nil {
    		t.Error("Unmarshal succeeded, should not have")
    	}
    }
    
    type rawStructTest struct {
    	Raw RawContent
    	A   int
    }
    
    func TestRawStructs(t *testing.T) {
    	var s rawStructTest
    	input := []byte{0x30, 0x03, 0x02, 0x01, 0x50}
    
    	rest, err := Unmarshal(input, &s)
    	if len(rest) != 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 18:24:36 UTC 2023
    - 43.6K bytes
    - Viewed (0)
  10. tests/integration/pilot/common/routing.go

    				Message:              "This is a test TCP message",
    				ProxyProtocolVersion: 1,
    				Check: check.Each(
    					func(r echoClient.Response) error {
    						body := r.RawContent
    						ok := strings.Contains(body, "PROXY TCP4")
    						if ok {
    							return fmt.Errorf("sent proxy protocol header, and it was echoed back")
    						}
    						return nil
    					}),
    			},
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 08 21:52:51 UTC 2024
    - 135.9K bytes
    - Viewed (0)
Back to top