Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1341 - 1350 of 1,838 for inf2 (0.02 sec)

  1. docs/zh/docs/tutorial/dependencies/dependencies-in-path-operation-decorators.md

    /// tip | "提示"
    
    有些编辑器会检查代码中没使用过的函数参数,并显示错误提示。
    
    在*路径操作装饰器*中使用 `dependencies` 参数,可以确保在执行依赖项的同时,避免编辑器显示错误提示。
    
    使用路径装饰器依赖项还可以避免开发新人误会代码中包含无用的未使用参数。
    
    ///
    
    /// info | "说明"
    
    本例中,使用的是自定义响应头 `X-Key` 和 `X-Token`。
    
    但实际开发中,尤其是在实现安全措施时,最好使用 FastAPI 内置的[安全工具](../security/index.md){.internal-link target=_blank}(详见下一章)。
    
    ///
    
    ## 依赖项错误和返回值
    
    路径装饰器依赖项也可以使用普通的依赖项*函数*。
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  2. docs/pt/docs/tutorial/response-status-code.md

    ///
    
    O parâmetro `status_code` recebe um número com o código de status HTTP.
    
    /// info | "Informação"
    
    `status_code` também pode receber um `IntEnum`, como o do Python <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>.
    
    ///
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  3. android/guava-testlib/test/com/google/common/testing/FakeTickerTest.java

        final CountDownLatch doneLatch = new CountDownLatch(numberOfThreads);
        for (int i = numberOfThreads; i > 0; i--) {
          @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored
          Future<?> possiblyIgnoredError =
              executorService.submit(
                  new Callable<@Nullable Void>() {
                    @Override
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Oct 22 13:49:09 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/AbstractXmlExtractor.java

                    if (Charset.isSupported(enc)) {
                        return enc;
                    }
                }
            } catch (final Exception e) {
                if (logger.isInfoEnabled()) {
                    logger.info("Use a default encoding: " + encoding, e);
                }
            } finally {
                try {
                    bis.reset();
                } catch (final IOException e) {
                    throw new ExtractException(e);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/dataclasses.md

    * Serialisierung der Daten
    * Dokumentation der Daten, usw.
    
    Das funktioniert genauso wie mit Pydantic-Modellen. Und tatsächlich wird es unter der Haube mittels Pydantic auf die gleiche Weise bewerkstelligt.
    
    /// info
    
    Bedenken Sie, dass Datenklassen nicht alles können, was Pydantic-Modelle können.
    
    Daher müssen Sie möglicherweise weiterhin Pydantic-Modelle verwenden.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  6. docs/de/docs/tutorial/response-status-code.md

    ///
    
    Dem `status_code`-Parameter wird eine Zahl mit dem HTTP-Statuscode übergeben.
    
    /// info
    
    Alternativ kann `status_code` auch ein `IntEnum` erhalten, so wie Pythons <a href="https://docs.python.org/3/library/http.html#http.HTTPStatus" class="external-link" target="_blank">`http.HTTPStatus`</a>.
    
    ///
    
    Das wird:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 16:59:43 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  7. docs/ru/docs/tutorial/response-status-code.md

    ///
    
    Параметр `status_code` принимает число, обозначающее HTTP код статуса ответа.
    
    /// info | "Информация"
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 7K bytes
    - Viewed (0)
  8. docs/en/docs/advanced/dataclasses.md

    * data validation
    * data serialization
    * data documentation, etc.
    
    This works the same way as with Pydantic models. And it is actually achieved in the same way underneath, using Pydantic.
    
    /// info
    
    Keep in mind that dataclasses can't do everything Pydantic models can do.
    
    So, you might still need to use Pydantic models.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Oct 28 10:35:06 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. docs/ko/docs/tutorial/header-params.md

    /// note | "기술 세부사항"
    
    `Header`는 `Path`, `Query` 및 `Cookie`의 "자매"클래스입니다. 이 역시 동일한 공통 `Param` 클래스를 상속합니다.
    
    `Query`, `Path`, `Header` 그리고 다른 것들을 `fastapi`에서 임포트 할 때, 이들은 실제로 특별한 클래스를 반환하는 함수임을 기억하세요.
    
    ///
    
    /// info | "정보"
    
    헤더를 선언하기 위해서 `Header`를 사용해야 합니다. 그렇지 않으면 해당 매개변수를 쿼리 매개변수로 해석하기 때문입니다.
    
    ///
    
    ## 자동 변환
    
    `Header`는 `Path`, `Query` 그리고 `Cookie`가 제공하는 것 외에 기능이 조금 더 있습니다.
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 06 20:36:54 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. cmd/ftp-server.go

    		ExplicitFTPS:   tls,
    		Logger:         &minioLogger{},
    		PassivePorts:   portRange,
    		PublicIP:       publicIP,
    	})
    	if err != nil {
    		logger.Fatal(err, "unable to initialize FTP server")
    	}
    
    	logger.Info(fmt.Sprintf("%s listening on %s", name, net.JoinHostPort(publicIP, strconv.Itoa(port))))
    
    	if err = ftpServer.ListenAndServe(); err != nil {
    		logger.Fatal(err, "unable to start FTP server")
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Mar 09 03:07:08 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top