Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 402 for media (0.05 sec)

  1. src/mime/mediatype.go

    	if rest != "" {
    		return errors.New("mime: unexpected content after media subtype")
    	}
    	return nil
    }
    
    // ErrInvalidMediaParameter is returned by [ParseMediaType] if
    // the media type value was found but there was an error parsing
    // the optional parameters
    var ErrInvalidMediaParameter = errors.New("mime: invalid media parameter")
    
    // ParseMediaType parses a media type value and any optional
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  2. docs/fr/docs/advanced/additional-responses.md

            }
        }
    }
    ```
    
    ## Types de médias supplémentaires pour la réponse principale
    
    Vous pouvez utiliser ce même paramètre `responses` pour ajouter différents types de médias pour la même réponse principale.
    
    Par exemple, vous pouvez ajouter un type de média supplémentaire `image/png`, en déclarant que votre *opération de chemin* peut renvoyer un objet JSON (avec le type de média `application/json`) ou une image PNG :
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. docs/en/docs/advanced/custom-response.md

    But you can also declare the `Response` that you want to be used, in the *path operation decorator*.
    
    The contents that you return from your *path operation function* will be put inside of that `Response`.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  4. platforms/documentation/docs/src/docs/css/prettify.css

    .pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:700}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:700}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:700}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px...
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 673 bytes
    - Viewed (0)
  5. src/mime/mediatype_test.go

    	// Tests from http://greenbytes.de/tech/tc2231/
    	{`"attachment"`, "attachment", "mime: no media type"},
    	{"attachment; filename=foo,bar.html", "attachment", "mime: invalid media parameter"},
    	{"attachment; ;filename=foo", "attachment", "mime: invalid media parameter"},
    	{"attachment; filename=foo bar.html", "attachment", "mime: invalid media parameter"},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 26 17:58:37 UTC 2022
    - 18.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/errors.go

    func NewNotAcceptableError(accepted []string) error {
    	return errNotAcceptable{accepted}
    }
    
    func (e errNotAcceptable) Error() string {
    	return fmt.Sprintf("only the following media types are accepted: %v", strings.Join(e.accepted, ", "))
    }
    
    func (e errNotAcceptable) Status() metav1.Status {
    	return metav1.Status{
    		Status:  metav1.StatusFailure,
    		Code:    http.StatusNotAcceptable,
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Mar 08 18:03:59 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  7. pkg/wasm/imagefetcher_test.go

    			})
    		}
    	})
    
    	t.Run("invalid media type", func(t *testing.T) {
    		l, err := newMockLayer(types.DockerPluginConfig, nil)
    		if err != nil {
    			t.Fatal(err)
    		}
    		img, err := mutate.Append(empty.Image, mutate.Addendum{Layer: l})
    		if err != nil {
    			t.Fatal(err)
    		}
    		_, err = extractDockerImage(img)
    		if err == nil || !strings.Contains(err.Error(), "invalid media type") {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sun Feb 05 04:15:17 UTC 2023
    - 16.3K bytes
    - Viewed (0)
  8. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/negotiation/negotiate_test.go

    		},
    		// "application" is not a valid media type, so the server will reject the response during
    		// negotiation (the server, in error, has specified an invalid media type)
    		{
    			accept: "application",
    			ns:     &fakeNegotiater{serializer: fakeCodec, types: []string{"application"}},
    			errFn: func(err error) bool {
    				return err.Error() == "only the following media types are accepted: application"
    			},
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 10 10:53:34 UTC 2019
    - 9K bytes
    - Viewed (0)
  9. src/cmd/go/internal/web/url_windows_test.go

    		canonicalURL: `file:///C:/Program%20Files/Music/Web%20Sys/main.html`,
    	},
    	{
    		url:      `file://applib/products/a-b/abc_9/4148.920a/media/start.swf`,
    		filePath: `\\applib\products\a-b\abc_9\4148.920a\media\start.swf`,
    	},
    	{
    		url:     `file:////applib/products/a%2Db/abc%5F9/4148.920a/media/start.swf`,
    		wantErr: "file URL missing drive letter",
    	},
    	{
    		url:     `C:\Program Files\Music\Web Sys\main.html?REQUEST=RADIO`,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 13:43:51 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  10. src/vendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go

    	aa64pfr1  uint64 /* A64 Processor Feature Register 1 */
    	aa64zfr0  uint64 /* A64 SVE Feature ID Register 0 */
    	mvfr0     uint32 /* Media and VFP Feature Register 0 */
    	mvfr1     uint32 /* Media and VFP Feature Register 1 */
    	mvfr2     uint32 /* Media and VFP Feature Register 2 */
    	pad       uint32
    	clidr     uint64 /* Cache Level ID Register */
    	ctr       uint64 /* Cache Type Register */
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 02 15:41:00 UTC 2020
    - 4.3K bytes
    - Viewed (0)
Back to top