Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for pastie (0.37 sec)

  1. docs/fr/docs/advanced/response-directly.md

    Ensuite, en arrière-plan, il mettra ces données JSON-compatible (par exemple un `dict`) à l'intérieur d'un `JSONResponse` qui sera utilisé pour envoyer la réponse au client.
    
    Mais vous pouvez retourner une `JSONResponse` directement à partir de vos *opérations de chemin*.
    
    Cela peut être utile, par exemple, pour retourner des en-têtes personnalisés ou des cookies.
    
    ## Renvoyer une `Response`
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  2. docs/fr/docs/advanced/additional-responses.md

    {!../../../docs_src/additional_responses/tutorial001.py!}
    ```
    
    !!! note "Remarque"
        Gardez à l'esprit que vous devez renvoyer directement `JSONResponse`.
    
    !!! info
        La clé `model` ne fait pas partie d'OpenAPI.
    
        **FastAPI** prendra le modèle Pydantic à partir de là, générera le `JSON Schema` et le placera au bon endroit.
    
        Le bon endroit est :
    
        * Dans la clé `content`, qui a pour valeur un autre objet JSON (`dict`) qui contient :
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 9.6K bytes
    - Viewed (0)
  3. docs/pt/docs/tutorial/body-multiple-params.md

        ```
    
    === "Python 3.8+"
    
        ```Python hl_lines="19-21"
        {!> ../../../docs_src/body_multiple_params/tutorial001.py!}
        ```
    
    !!! note "Nota"
        Repare que, neste caso, o `item` que seria capturado a partir do corpo é opcional. Visto que ele possui `None` como valor padrão.
    
    ## Múltiplos parâmetros de corpo
    
    No exemplo anterior, as *operações de rota* esperariam um JSON no corpo contendo os atributos de um `Item`, exemplo:
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 6K bytes
    - Viewed (0)
  4. internal/config/server.go

    package config
    
    // Opts holds MinIO configuration options
    type Opts struct {
    	FTP struct {
    		Address          string `yaml:"address"`
    		PassivePortRange string `yaml:"passive-port-range"`
    	} `yaml:"ftp"`
    	SFTP struct {
    		Address       string `yaml:"address"`
    		SSHPrivateKey string `yaml:"ssh-private-key"`
    	} `yaml:"sftp"`
    }
    
    // ServerConfigVersion struct is used to extract the version
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 1.9K bytes
    - Viewed (0)
  5. docs/metrics/prometheus/README.md

      scheme: http
      static_configs:
      - targets: ['localhost:9000']
    ```
    
    ### 4. Update `scrape_configs` section in prometheus.yml
    
    To authorize every scrape request, copy and paste the generated `scrape_configs` section in the prometheus.yml and restart the Prometheus service.
    
    ### 5. Start Prometheus
    
    Start (or) Restart Prometheus service by running
    
    ```sh
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Apr 12 15:49:30 GMT 2024
    - 7.1K bytes
    - Viewed (0)
  6. docs/distributed/CONFIG.md

          - "https://server3-pool2:9000/mnt/disk{1...4}/"
          - "https://server4-pool2:9000/mnt/disk{1...4}/"
      # more args
    
    options:
      ftp: # settings for MinIO to act as an ftp server
        address: ":8021"
        passive-port-range: "30000-40000"
      sftp: # settings for MinIO to act as an sftp server
        address: ":8022"
        ssh-private-key: "/home/user/.ssh/id_rsa"
    ```
    
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri May 03 15:54:03 GMT 2024
    - 4.2K bytes
    - Viewed (0)
Back to top