Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 2,270 for WAY (0.03 sec)

  1. docs/en/docs/reference/exceptions.md

    These are the exceptions that you can raise to show errors to the client.
    
    When you raise an exception, as would happen with normal Python, the rest of the execution is aborted. This way you can raise these exceptions from anywhere in the code to abort a request and show the error to the client.
    
    You can use:
    
    * `HTTPException`
    * `WebSocketException`
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 597 bytes
    - Viewed (0)
  2. staging/src/k8s.io/cli-runtime/pkg/resource/interfaces.go

    type RESTMapperFunc func() (meta.RESTMapper, error)
    type CategoryExpanderFunc func() (restmapper.CategoryExpander, error)
    
    // RESTClient is a client helper for dealing with RESTful resources
    // in a generic way.
    type RESTClient interface {
    	Get() *rest.Request
    	Post() *rest.Request
    	Patch(types.PatchType) *rest.Request
    	Delete() *rest.Request
    	Put() *rest.Request
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 23:00:24 UTC 2019
    - 3.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/event/ListenerManager.java

     */
    
    package org.gradle.internal.event;
    
    import org.gradle.internal.service.scopes.Scope;
    import org.gradle.internal.service.scopes.ServiceScope;
    
    /**
     * Unified manager for all Gradle events.  Provides a simple way to find all listeners of a given type in the
     * system.
     *
     * <p>While the methods work with any Object, in general only interfaces should be used as listener types.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  4. src/cmd/cgo/internal/test/issue9400/gccgo.go

    //go:build gccgo
    
    package issue9400
    
    import (
    	"runtime"
    	"sync/atomic"
    )
    
    // The test for the gc compiler resets the stack pointer so that the
    // stack gets modified.  We don't have a way to do that for gccgo
    // without writing more assembly code, which we haven't bothered to
    // do.  So this is not much of a test.
    
    var Baton int32
    
    func RewindAndSetgid() {
    	atomic.StoreInt32(&Baton, 1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 12:00:02 UTC 2023
    - 612 bytes
    - Viewed (0)
  5. docs/en/docs/advanced/generate-clients.md

    But I'll show you how to improve that next. 🤓
    
    ## Custom Operation IDs and Better Method Names
    
    You can **modify** the way these operation IDs are **generated** to make them simpler and have **simpler method names** in the clients.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 10.5K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/_gen/cover.bash

    #!/usr/bin/env bash
    # Copyright 2020 The Go Authors. All rights reserved.
    # Use of this source code is governed by a BSD-style
    # license that can be found in the LICENSE file.
    
    # A quick and dirty way to obtain code coverage from rulegen's main func. For
    # example:
    #
    #     ./cover.bash && go tool cover -html=cover.out
    #
    # This script is needed to set up a temporary test file, so that we don't break
    # regular 'go run .' usage to run the generator.
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 664 bytes
    - Viewed (0)
  7. platforms/core-runtime/base-services/src/test/groovy/org/gradle/internal/classloader/MultiParentClassLoaderTest.groovy

            loader.loadClass('string')
    
            then:
            ClassNotFoundException e = thrown()
            e.message == 'string not found.'
        }
    
        @Requires(UnitTestPreconditions.Jdk8OrEarlier)
        // todo: find a way to mock this in JDK 9+, where `getDefinedPackage` is final
        public void loadsPackageFromParentsInOrderSpecified() {
            def stringPackage = String.class.getPackage()
            def listPackage = List.class.getPackage()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. pkg/kubelet/stats/host_stats_provider_fake.go

    	osInterface kubecontainer.OSInterface
    }
    
    // NewFakeHostStatsProvider provides a way to test with fake host statistics
    func NewFakeHostStatsProvider() HostStatsProvider {
    	return &fakeHostStatsProvider{
    		osInterface: &kubecontainertest.FakeOS{},
    	}
    }
    
    // NewFakeHostStatsProviderWithData provides a way to test with fake host statistics
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 16 17:57:17 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  9. docs/en/docs/tutorial/body-fields.md

    # Body - Fields
    
    The same way you can declare additional validation and metadata in *path operation function* parameters with `Query`, `Path` and `Body`, you can declare validation and metadata inside of Pydantic models using Pydantic's `Field`.
    
    ## Import `Field`
    
    First, you have to import it:
    
    === "Python 3.10+"
    
        ```Python hl_lines="4"
        {!> ../../../docs_src/body_fields/tutorial001_an_py310.py!}
        ```
    
    === "Python 3.9+"
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Tue Oct 17 05:59:11 UTC 2023
    - 3.6K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/response-model.md

        That way you tell the editor that you are intentionally returning anything. But FastAPI will still do the data documentation, validation, filtering, etc. with the `response_model`.
    
    ### `response_model` Priority
    
    If you declare both a return type and a `response_model`, the `response_model` will take priority and be used by FastAPI.
    
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 17.9K bytes
    - Viewed (0)
Back to top