Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 388 for spaces (0.22 sec)

  1. okhttp/src/test/java/okhttp3/MultipartBodyTest.kt

      }
    
      @Test
      fun stringEscapingIsWeird() {
        val expected =
          """
          |--AaB03x
          |Content-Disposition: form-data; name="field with spaces"; filename="filename with spaces.txt"
          |Content-Type: text/plain; charset=utf-8
          |
          |okay
          |--AaB03x
          |Content-Disposition: form-data; name="field with %22"
          |
          |"
          |--AaB03x
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.4K bytes
    - Viewed (0)
  2. fastapi/security/oauth2.py

                ),
            ],
            scope: Annotated[
                str,
                Form(),
                Doc(
                    """
                    A single string with actually several scopes separated by spaces. Each
                    scope is also a string.
    
                    For example, a single string with:
    
                    ```python
                    "items:read items:write users:read profile openid"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 21.1K bytes
    - Viewed (1)
  3. src/cmd/asm/internal/asm/endtoend_test.go

    			hexByLine[fmt.Sprintf("%s:%d", input, lineno)] = hexes
    		}
    
    		// Canonicalize spacing in printed form.
    		// First field is opcode, then tab, then arguments separated by spaces.
    		// Canonicalize spaces after commas first.
    		// Comma to separate argument gets a space; comma within does not.
    		var buf []byte
    		nest := 0
    		for i := 0; i < len(printed); i++ {
    			c := printed[i]
    			switch c {
    			case '{', '[':
    				nest++
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Dec 07 18:42:59 GMT 2023
    - 11.6K bytes
    - Viewed (0)
  4. internal/s3select/sql/funceval.go

    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    		res, ok := strToInt(strings.TrimSpace(x))
    		if !ok {
    			return 0, errCastFailure("could not parse as int")
    		}
    		return res, nil
    	case []byte:
    		// Parse as number, truncate floating point if
    		// needed.
    		// String might contain trimming spaces, which
    		// needs to be trimmed.
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 13.2K bytes
    - Viewed (0)
  5. docs/en/docs/tutorial/security/simple-oauth2.md

    The spec also states that the `username` and `password` must be sent as form data (so, no JSON here).
    
    ### `scope`
    
    The spec also says that the client can send another form field "`scope`".
    
    The form field name is `scope` (in singular), but it is actually a long string with "scopes" separated by spaces.
    
    Each "scope" is just a string (without spaces).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  6. src/bufio/scan.go

    	return false
    }
    
    // ScanWords is a split function for a [Scanner] that returns each
    // space-separated word of text, with surrounding spaces deleted. It will
    // never return an empty string. The definition of space is set by
    // unicode.IsSpace.
    func ScanWords(data []byte, atEOF bool) (advance int, token []byte, err error) {
    	// Skip leading spaces.
    	start := 0
    	for width := 0; start < len(data); start += width {
    		var r rune
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  7. cmd/batch-rotate.go

    func (e BatchJobKeyRotateEncryption) Validate() error {
    	if e.Type != sses3 && e.Type != ssekms {
    		return errInvalidArgument
    	}
    	spaces := strings.HasPrefix(e.Key, " ") || strings.HasSuffix(e.Key, " ")
    	if e.Type == ssekms && spaces {
    		return crypto.ErrInvalidEncryptionKeyID
    	}
    	if e.Type == ssekms && GlobalKMS != nil {
    		ctx := kms.Context{}
    		if e.Context != "" {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 14.2K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/security/oauth2-scopes.md

    The content of each of these strings can have any format, but should not contain spaces.
    
    These scopes represent "permissions".
    
    In OpenAPI (e.g. the API docs), you can define "security schemes".
    
    When one of these security schemes uses OAuth2, you can also declare and use scopes.
    
    Each "scope" is just a string (without spaces).
    
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 21:21:35 GMT 2024
    - 20.5K bytes
    - Viewed (0)
  9. src/bytes/bytes.go

    		}
    		if f(r) {
    			if start >= 0 {
    				spans = append(spans, span{start, i})
    				start = -1
    			}
    		} else {
    			if start < 0 {
    				start = i
    			}
    		}
    		i += size
    	}
    
    	// Last field might end at EOF.
    	if start >= 0 {
    		spans = append(spans, span{start, len(s)})
    	}
    
    	// Create subslices from recorded field indices.
    	a := make([][]byte, len(spans))
    	for i, span := range spans {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/net/MediaTypeTest.java

        assertEquals(
            "text/plain; something=\"cr@zy\"; something-else=\"crazy with spaces\";"
                + " and-another-thing=\"\"; normal-thing=foo",
            MediaType.create("text", "plain")
                .withParameter("something", "cr@zy")
                .withParameter("something-else", "crazy with spaces")
                .withParameter("and-another-thing", "")
                .withParameter("normal-thing", "foo")
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Mar 05 13:16:00 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top