Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 8,568 for return (0.21 sec)

  1. tests/test_response_model_as_return_annotation.py

    app = FastAPI()
    
    
    @app.get("/no_response_model-no_annotation-return_model")
    def no_response_model_no_annotation_return_model():
        return User(name="John", surname="Doe")
    
    
    @app.get("/no_response_model-no_annotation-return_dict")
    def no_response_model_no_annotation_return_dict():
        return {"name": "John", "surname": "Doe"}
    
    
    @app.get("/response_model-no_annotation-return_same_model", response_model=User)
    Python
    - Registered: 2023-12-03 07:19
    - Last Modified: 2023-08-14 09:49
    - 47.7K bytes
    - Viewed (0)
  2. bin/retry.sh

    # to 5 times.
    
    function fail {
      echo "${1}" >&2
      exit 1
    }
    
    function isatty() {
     if [ -t 1 ] ; then
       return 0
      else
       return 1
      fi
    }
    
    function retry {
      local tmpFile
      tmpFile=$(mktemp)
      trap 'rm -f "${tmpFile}"' EXIT
    
      local failureRegex="$1"
      shift
      local n=1
      local max=5
      while true; do
        unset SHELL # Don't let environment control which shell to use
        if isatty; then
    Shell Script
    - Registered: 2023-11-29 22:53
    - Last Modified: 2021-06-11 16:08
    - 2K bytes
    - Viewed (0)
  3. internal/bucket/object/lock/lock.go

    		return &ret, ErrPastObjectLockRetainDate
    	}
    
    	if !ret.RetainUntilDate.IsZero() && ret.RetainUntilDate.Before(t) {
    		return &ret, ErrPastObjectLockRetainDate
    	}
    
    	return &ret, nil
    }
    
    // IsObjectLockRetentionRequested returns true if object lock retention headers are set.
    func IsObjectLockRetentionRequested(h http.Header) bool {
    	if _, ok := h[AmzObjectLockMode]; ok {
    		return true
    	}
    Go
    - Registered: 2023-12-03 19:28
    - Last Modified: 2023-09-04 19:57
    - 17K bytes
    - Viewed (0)
  4. src/main/java/jcifs/SmbResourceLocator.java

         * this method will return the referral path to which it maps. Otherwise
         * <code>null</code> is returned.
         * 
         * @return URL to the DFS volume
         */
        String getDfsPath ();
    
    
        /**
         * @return the transport port, if specified
         */
        int getPort ();
    
    
        /**
         * @return the original URL
         */
        URL getURL ();
    
    
    Java
    - Registered: 2023-12-03 00:10
    - Last Modified: 2018-07-01 13:12
    - 5.6K bytes
    - Viewed (0)
  5. internal/event/target/kafka.go

    	quitCh     chan struct{}
    }
    
    // ID - returns target ID.
    func (target *KafkaTarget) ID() event.TargetID {
    	return target.id
    }
    
    // Name - returns the Name of the target.
    func (target *KafkaTarget) Name() string {
    	return target.ID().String()
    }
    
    // Store returns any underlying store if set.
    func (target *KafkaTarget) Store() event.TargetStore {
    	return target.store
    }
    
    Go
    - Registered: 2023-12-03 19:28
    - Last Modified: 2023-11-30 08:25
    - 13.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/primitives/Doubles.java

       * @param target a primitive {@code double} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(double[] array, double target) {
        for (double value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
       * Returns the index of the first appearance of the value {@code target} in {@code array}. Note
    Java
    - Registered: 2023-12-01 12:43
    - Last Modified: 2023-10-11 01:53
    - 27.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/primitives/Chars.java

       * @param target a primitive {@code char} value
       * @return {@code true} if {@code array[i] == target} for some value of {@code i}
       */
      public static boolean contains(char[] array, char target) {
        for (char value : array) {
          if (value == target) {
            return true;
          }
        }
        return false;
      }
    
      /**
    Java
    - Registered: 2023-12-01 12:43
    - Last Modified: 2023-05-26 22:04
    - 23.5K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMap.java

        return new UnmodifiableIterator<K>() {
          @Override
          public boolean hasNext() {
            return entryIterator.hasNext();
          }
    
          @Override
          public K next() {
            return entryIterator.next().getKey();
          }
        };
      }
    
      Spliterator<K> keySpliterator() {
    Java
    - Registered: 2023-11-03 12:43
    - Last Modified: 2023-10-27 15:54
    - 42.9K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/TypeToken.java

      }
    
      /** Returns an instance of type token that wraps {@code type}. */
      public static <T> TypeToken<T> of(Class<T> type) {
        return new SimpleTypeToken<>(type);
      }
    
      /** Returns an instance of type token that wraps {@code type}. */
      public static TypeToken<?> of(Type type) {
        return new SimpleTypeToken<>(type);
      }
    
      /**
    Java
    - Registered: 2023-12-01 12:43
    - Last Modified: 2023-06-26 21:02
    - 53.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/crawler/transformer/impl/HtmlTransformer.java

            }
    
            return url.replaceAll("([^:])/+", "$1/");
        }
    
        protected boolean isValidPath(final String path) {
            if (StringUtil.isBlank(path)) {
                return false;
            }
    
            final Matcher matcher = invalidUrlPattern.matcher(path);
            if (matcher.find()) {
                return false;
            }
    
            return true;
        }
    
    Java
    - Registered: 2023-11-05 03:50
    - Last Modified: 2023-01-04 12:38
    - 18.9K bytes
    - Viewed (0)
Back to top