Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for newApp (0.06 sec)

  1. cmd/main.go

    COMMANDS:
      {{range .VisibleCommands}}{{join .Names ", "}}{{ "\t" }}{{.Usage}}
      {{end}}{{if .VisibleFlags}}
    FLAGS:
      {{range .VisibleFlags}}{{.}}
      {{end}}{{end}}
    VERSION:
      {{.Version}}
    `
    
    func newApp(name string) *cli.App {
    	// Collection of minio commands currently supported are.
    	commands := []cli.Command{}
    
    	// Collection of minio commands currently supported in a trie tree.
    	commandsTree := trie.NewTrie()
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Tue Jul 30 22:59:48 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  2. docs/debugging/healing-bin/main.go

    import (
    	"archive/zip"
    	"bytes"
    	"encoding/json"
    	"fmt"
    	"io"
    	"log"
    	"os"
    	"strings"
    
    	"github.com/minio/cli"
    	"github.com/tinylib/msgp/msgp"
    )
    
    func main() {
    	app := cli.NewApp()
    	app.Copyright = "MinIO, Inc."
    	app.Usage = "healing.bin to JSON"
    	app.HideVersion = true
    	app.HideHelpCommand = true
    	app.CustomAppHelpTemplate = `NAME:
      {{.Name}} - {{.Usage}}
    
    USAGE:
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 3.1K bytes
    - Viewed (0)
  3. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/android/Android10SocketAdapter.kt

     */
    @SuppressLint("NewApi")
    @SuppressSignatureCheck
    class Android10SocketAdapter : SocketAdapter {
      override fun matchesSocket(sslSocket: SSLSocket): Boolean = SSLSockets.isSupportedSocket(sslSocket)
    
      override fun isSupported(): Boolean = Companion.isSupported()
    
      @SuppressLint("NewApi")
      override fun getSelectedProtocol(sslSocket: SSLSocket): String? =
        try {
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  4. okhttp/src/androidMain/kotlin/okhttp3/internal/platform/Android10Platform.kt

        } else {
          // Unable to report via CloseGuard. As a last-ditch effort, send it to the logger.
          super.logCloseableLeak(message, stackTrace)
        }
      }
    
      @SuppressLint("NewApi")
      override fun isCleartextTrafficPermitted(hostname: String): Boolean =
        NetworkSecurityPolicy.getInstance().isCleartextTrafficPermitted(hostname)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Jul 20 11:25:50 UTC 2025
    - 4.5K bytes
    - Viewed (0)
  5. docs/de/docs/advanced/middleware.md

    In der Dokumentation fΓΌr ASGI-Middlewares von Drittanbietern wird Ihnen wahrscheinlich gesagt, etwa Folgendes zu tun:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  6. docs/em/docs/advanced/middleware.md

    πŸ› οΈ 🚫 βœ”οΈ βš’ FastAPI βš–οΈ πŸ’ƒ πŸ‘·, πŸ“ ⚫️ ⏩ πŸ”« πŸ”Œ.
    
    🏒, πŸ”« πŸ› οΈ πŸŽ“ πŸ‘ˆ βŒ› πŸ“¨ πŸ”« πŸ“± πŸ₯‡ ❌.
    
    , 🧾 πŸ₯‰-πŸ₯³ πŸ”« πŸ› οΈ πŸ‘« πŸ”œ 🎲 πŸ’¬ πŸ‘† πŸ•³ πŸ’–:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    βœ‹οΈ FastAPI (πŸ€™ πŸ’ƒ) 🚚 πŸ™… 🌌 ⚫️ πŸ‘ˆ βš’ πŸ’­ πŸ‘ˆ πŸ”— πŸ› οΈ 🍡 πŸ’½ ❌ & πŸ›ƒ ⚠ πŸ•β€πŸ¦Ί πŸ‘· β˜‘.
    
    πŸ‘ˆ, πŸ‘† βš™οΈ `app.add_middleware()` (πŸ–Ό ⚜).
    
    ```Python
    from fastapi import FastAPI
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  7. docs/en/docs/advanced/middleware.md

    So, in the documentation for third-party ASGI middlewares they will probably tell you to do something like:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    But FastAPI (actually Starlette) provides a simpler way to do it that makes sure that the internal middlewares handle server errors and custom exception handlers work properly.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:59:07 UTC 2025
    - 4.3K bytes
    - Viewed (0)
  8. docs/pt/docs/advanced/middleware.md

    EntΓ£o, na documentaΓ§Γ£o de middlewares ASGI de terceiros, eles provavelmente dirΓ£o para vocΓͺ fazer algo como:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Wed Oct 30 20:00:22 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  9. docs/es/docs/advanced/middleware.md

    Entonces, en la documentaciΓ³n de middlewares ASGI de terceros probablemente te indicarΓ‘n que hagas algo como:
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Dec 30 18:26:57 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  10. docs/ko/docs/advanced/middlewares.md

    일반적으둜 ASGI λ―Έλ“€μ›¨μ–΄λŠ” 첫 번째 인수둜 ASGI 앱을 λ°›λŠ” ν΄λž˜μŠ€λ“€μž…λ‹ˆλ‹€.
    
    λ”°λΌμ„œ 타사 ASGI 미듀웨어 λ¬Έμ„œμ—μ„œ 일반적으둜 λ‹€μŒκ³Ό 같이 μ‚¬μš©ν•˜λ„λ‘ μ•ˆλ‚΄ν•  κ²ƒμž…λ‹ˆλ‹€.
    
    ```Python
    from unicorn import UnicornMiddleware
    
    app = SomeASGIApp()
    
    new_app = UnicornMiddleware(app, some_config="rainbow")
    ```
    
    ν•˜μ§€λ§Œ λ‚΄λΆ€ 미듀웨어가 μ„œλ²„ 였λ₯˜λ₯Ό μ²˜λ¦¬ν•˜κ³  μ‚¬μš©μž μ •μ˜ μ˜ˆμ™Έ μ²˜λ¦¬κΈ°κ°€ μ œλŒ€λ‘œ μž‘λ™ν•˜λ„λ‘ ν•˜λŠ” 더 κ°„λ‹¨ν•œ 방법을 μ œκ³΅ν•˜λŠ” FastAPI(μ‹€μ œλ‘œλŠ” Starlette)κ°€ μžˆμŠ΅λ‹ˆλ‹€.
    
    이λ₯Ό μœ„ν•΄ `app.add_middleware()`λ₯Ό μ‚¬μš©ν•©λ‹ˆλ‹€(CORS의 μ˜ˆμ—μ„œμ™€ 같이).
    
    ```Python
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Tue Nov 26 22:35:09 UTC 2024
    - 4.6K bytes
    - Viewed (0)
Back to top