Search Options

Results per page
Sort
Preferred Languages
Advance

Results 331 - 340 of 1,208 for somt (0.02 sec)

  1. docs/en/docs/tutorial/handling-errors.md

    They are handled automatically by **FastAPI** and converted to JSON.
    
    ///
    
    ## Add custom headers { #add-custom-headers }
    
    There are some situations in where it's useful to be able to add custom headers to the HTTP error. For example, for some types of security.
    
    You probably won't need to use it directly in your code.
    
    But in case you needed it for an advanced scenario, you can add custom headers:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/cache/LocalCacheMapComputeTest.java

        assertThat(notifications).hasSize(1);
        CacheTesting.checkEmpty(cache);
      }
    
      public void testUpdates() {
        cache.put(key, "1");
        // simultaneous update for same key, some null, some non-null
        doParallelCacheOp(
            count,
            n -> {
              cache.asMap().compute(key, (k, v) -> n % 2 == 0 ? v + delimiter + n : null);
            });
        assertThat(cache.size()).isAtMost(1);
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Feb 12 03:49:18 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  3. mockwebserver/README.md

    ```java
    public void test() throws Exception {
      // Create a MockWebServer. These are lean enough that you can create a new
      // instance for every unit test.
      MockWebServer server = new MockWebServer();
    
      // Schedule some responses.
      server.enqueue(new MockResponse.Builder()
          .body("hello, world!")
          .build());
      server.enqueue(new MockResponse.Builder()
          .body("sup, bra?")
          .build());
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Jul 19 13:40:52 UTC 2025
    - 8.1K bytes
    - Viewed (0)
  4. docs/en/docs/advanced/additional-responses.md

    <img src="/img/tutorial/additional-responses/image01.png">
    
    ## Combine predefined responses and custom ones { #combine-predefined-responses-and-custom-ones }
    
    You might want to have some predefined responses that apply to many *path operations*, but you want to combine them with custom responses needed by each *path operation*.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 8.9K bytes
    - Viewed (0)
  5. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataSource.java

     * under the License.
     */
    package org.apache.maven.repository.metadata;
    
    import java.util.List;
    
    import org.apache.maven.artifact.repository.ArtifactRepository;
    
    /**
     * Provides some metadata operations, like querying the remote repository for a list of versions available for an
     * artifact.
     *
     */
    @Deprecated
    public interface MetadataSource {
        String ROLE = MetadataSource.class.getName();
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  6. docs/en/docs/tutorial/dependencies/global-dependencies.md

    # Global Dependencies { #global-dependencies }
    
    For some types of applications you might want to add dependencies to the whole application.
    
    Similar to the way you can [add `dependencies` to the *path operation decorators*](dependencies-in-path-operation-decorators.md){.internal-link target=_blank}, you can add them to the `FastAPI` application.
    
    In that case, they will be applied to all the *path operations* in the application:
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 1.1K bytes
    - Viewed (0)
  7. ci/official/containers/ml_build/setup.packages.sh

    export DEBIAN_FRONTEND=noninteractive
    
    apt-get update
    # Remove commented lines and blank lines
    apt-get install -y --no-install-recommends $(sed -e '/^\s*#.*$/d' -e '/^\s*$/d' "$1" | sort -u)
    Registered: Tue Sep 09 12:39:10 UTC 2025
    - Last Modified: Tue Sep 24 20:45:58 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  8. tests/preload_test.go

    package tests_test
    
    import (
    	"context"
    	"encoding/json"
    	"regexp"
    	"sort"
    	"strconv"
    	"sync"
    	"testing"
    	"time"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	. "gorm.io/gorm/utils/tests"
    )
    
    func TestPreloadWithAssociations(t *testing.T) {
    	user := *GetUser("preload_with_associations", Config{
    		Account:   true,
    		Pets:      2,
    		Toys:      3,
    		Company:   true,
    		Manager:   true,
    		Team:      4,
    Registered: Sun Sep 07 09:35:13 UTC 2025
    - Last Modified: Wed Jun 12 10:00:47 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  9. cmd/config.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"path"
    	"sort"
    	"strings"
    
    	jsoniter "github.com/json-iterator/go"
    	"github.com/minio/madmin-go/v3"
    	"github.com/minio/minio/internal/config"
    	"github.com/minio/minio/internal/kms"
    )
    
    const (
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 5.9K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

        return method.getName().startsWith("tryEnter");
      }
    
      /**
       * Identifies just enterIfXxx methods (a subset of {@link #isAnyEnter}), which are mostly like the
       * enterXxx methods but behave like tryEnterXxx in some scenarios.
       */
      private static boolean isEnterIf(Method method) {
        return method.getName().startsWith("enterIf");
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 27K bytes
    - Viewed (0)
Back to top