Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 778 for function (0.32 sec)

  1. docs/en/docs/tutorial/middleware.md

    ## Create a middleware
    
    To create a middleware you use the decorator `@app.middleware("http")` on top of a function.
    
    The middleware function receives:
    
    * The `request`.
    * A function `call_next` that will receive the `request` as a parameter.
        * This function will pass the `request` to the corresponding *path operation*.
        * Then it returns the `response` generated by the corresponding *path operation*.
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 2.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Supplier.java

    import com.google.common.annotations.GwtCompatible;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * A class that can supply objects of a single type; a pre-Java-8 version of {@link
     * java.util.function.Supplier java.util.function.Supplier}. Semantically, this could be a factory,
     * generator, builder, closure, or something else entirely. No guarantees are implied by this
     * interface.
     *
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 2.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/base/Equivalence.java

       * {@code function} to the argument, then evaluating using {@code this}. That is, for any pair of
       * non-null objects {@code x} and {@code y}, {@code equivalence.onResultOf(function).equivalent(a,
       * b)} is true if and only if {@code equivalence.equivalent(function.apply(a), function.apply(b))}
       * is true.
       *
       * <p>For example:
       *
       * <pre>{@code
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 01:41:50 GMT 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/stream/StreamUtil.java

     */
    package org.codelibs.core.stream;
    
    import java.util.Arrays;
    import java.util.Collections;
    import java.util.Map;
    import java.util.function.Consumer;
    import java.util.function.Function;
    import java.util.function.Supplier;
    import java.util.stream.Stream;
    
    public class StreamUtil {
        private StreamUtil() {
            // nothing
        }
    
        @SafeVarargs
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/helper/QueryHelperTest.java

                    Set.of("QUERY1", "QUERY2"), //
                    buildQuery("QUERY1^10 QUERY2^5"));
    
            assertQueryContext(
    Java
    - Registered: Mon Apr 29 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 37.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/FuturesTest.java

        final BarChild barChild = new BarChild();
        Function<Foo, BarChild> function =
            new Function<Foo, BarChild>() {
              @Override
              public BarChild apply(Foo unused) {
                return barChild;
              }
            };
        Bar bar = getDone(transform(future, function, directExecutor()));
        assertSame(barChild, bar);
      }
    
      /*
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 144.5K bytes
    - Viewed (0)
  7. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/evaluate/FirCompileTimeConstantEvaluator.kt

            functionCall: FirFunctionCall,
            mode: KtConstantEvaluationMode,
        ): FirLiteralExpression<*>? {
            val function = functionCall.getOriginalFunction() as? FirSimpleFunction ?: return null
    
            val opr1 = evaluate(functionCall.explicitReceiver, mode) ?: return null
            opr1.evaluate(function)?.let {
                return it.adjustType(functionCall.resolvedType)
            }
    
    Plain Text
    - Registered: Fri Apr 26 08:18:10 GMT 2024
    - Last Modified: Wed Mar 20 14:53:27 GMT 2024
    - 16.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/ImmutableTable.java

    import java.io.ObjectInputStream;
    import java.io.Serializable;
    import java.util.Comparator;
    import java.util.Iterator;
    import java.util.List;
    import java.util.Map;
    import java.util.function.BinaryOperator;
    import java.util.function.Function;
    import java.util.stream.Collector;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 17.6K bytes
    - Viewed (0)
  9. buildscripts/cross-compile.sh

    [ -n "$BASH_XTRACEFD" ] && set -x
    
    function _init() {
    	## All binaries are static make sure to disable CGO.
    	export CGO_ENABLED=0
    
    	## List of architectures and OS to test coss compilation.
    	SUPPORTED_OSARCH="linux/ppc64le linux/mips64 linux/amd64 linux/arm64 linux/s390x darwin/arm64 darwin/amd64 freebsd/amd64 windows/amd64 linux/arm linux/386 netbsd/amd64 linux/mips openbsd/amd64"
    }
    
    function _build() {
    	local osarch=$1
    Shell Script
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Dec 19 01:08:22 GMT 2023
    - 958 bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/response-model.md

    # Response Model - Return Type
    
    You can declare the type used for the response by annotating the *path operation function* **return type**.
    
    You can use **type annotations** the same way you would for input data in function **parameters**, you can use Pydantic models, lists, dictionaries, scalar values like integers, booleans, etc.
    
    === "Python 3.10+"
    
        ```Python hl_lines="16  21"
        {!> ../../../docs_src/response_model/tutorial001_01_py310.py!}
        ```
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 17.9K bytes
    - Viewed (0)
Back to top