Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 266 for strdup (0.15 sec)

  1. docs_src/events/tutorial001.py

    from fastapi import FastAPI
    
    app = FastAPI()
    
    items = {}
    
    
    @app.on_event("startup")
    async def startup_event():
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 283 bytes
    - Viewed (0)
  2. docs/en/docs/advanced/testing-events.md

    # Testing Events: startup - shutdown
    
    When you need your event handlers (`startup` and `shutdown`) to run in your tests, you can use the `TestClient` with a `with` statement:
    
    ```Python hl_lines="9-12  20-24"
    {!../../../docs_src/app_testing/tutorial003.py!}
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 29 14:02:58 GMT 2020
    - 262 bytes
    - Viewed (0)
  3. docs/de/docs/tutorial/index.md

    <span style="color: green;">INFO</span>:     Started server process [28722]
    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    Es wird **ausdrücklich empfohlen**, dass Sie den Code schreiben oder kopieren, ihn bearbeiten und lokal ausführen.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Jan 16 12:11:15 GMT 2024
    - 3.1K bytes
    - Viewed (0)
  4. docs/fr/docs/tutorial/index.md

    <span style="color: green;">INFO</span>:     Started server process [28722]
    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    Il est **FORTEMENT encouragé** que vous écriviez ou copiez le code, l'éditiez et l'exécutiez localement.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jul 27 18:51:55 GMT 2023
    - 3.1K bytes
    - Viewed (0)
  5. ci/official/containers/linux_arm64/builder.devtoolset/stringop_trunc.patch

    -	    && (__s2_len = strlen (s2), __s2_len < 4)			      \
    -	    ? (__builtin_constant_p (s1) && __string2_1bptr_p (s1)	      \
    -	       ? __builtin_strcmp (s1, s2)				      \
    -	       : __strcmp_gc (s1, s2, __s2_len))			      \
    -	    : __builtin_strcmp (s1, s2)))); })
    -# else
    -#  define strcmp(s1, s2) \
    -  __extension__								      \
    -  ({ size_t __s1_len, __s2_len;						      \
    Others
    - Registered: Tue May 07 12:40:20 GMT 2024
    - Last Modified: Mon Sep 18 14:52:45 GMT 2023
    - 42.9K bytes
    - Viewed (1)
  6. docs/ru/docs/tutorial/index.md

    <span style="color: green;">INFO</span>:     Started server process [28722]
    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    **НАСТОЯТЕЛЬНО рекомендуется**, чтобы вы написали или скопировали код, отредактировали его и запустили локально.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 4.7K bytes
    - Viewed (0)
  7. tensorflow/c/experimental/filesystem/plugins/posix/posix_filesystem_helper.cc

      close(dst_fd);
      if (error_code != 0) {
        errno = error_code;
        return -1;
      } else {
        return 0;
      }
    }
    
    int RemoveSpecialDirectoryEntries(const struct dirent* entry) {
      return strcmp(entry->d_name, ".") != 0 && strcmp(entry->d_name, "..") != 0;
    }
    
    C++
    - Registered: Tue Apr 23 12:39:09 GMT 2024
    - Last Modified: Thu Jan 16 05:36:52 GMT 2020
    - 2.1K bytes
    - Viewed (1)
  8. android/guava/src/com/google/common/util/concurrent/AbstractScheduledService.java

     * Base class for services that can implement {@link #startUp} and {@link #shutDown} but while in
     * the "running" state need to perform a periodic task. Subclasses can implement {@link #startUp},
     * {@link #shutDown} and also a {@link #runOneIteration} method that will be executed periodically.
     *
     * <p>This class uses the {@link ScheduledExecutorService} returned from {@link #executor} to run
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 25.8K bytes
    - Viewed (0)
  9. docs_src/app_testing/tutorial003.py

    from fastapi import FastAPI
    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    items = {}
    
    
    @app.on_event("startup")
    async def startup_event():
        items["foo"] = {"name": "Fighters"}
        items["bar"] = {"name": "Tenders"}
    
    
    @app.get("/items/{item_id}")
    async def read_items(item_id: str):
        return items[item_id]
    
    
    def test_read_items():
        with TestClient(app) as client:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 528 bytes
    - Viewed (0)
  10. docs/zh/docs/tutorial/index.md

    <span style="color: green;">INFO</span>:     Started server process [28722]
    <span style="color: green;">INFO</span>:     Waiting for application startup.
    <span style="color: green;">INFO</span>:     Application startup complete.
    ```
    
    </div>
    
    强烈建议你在本地编写或复制代码,对其进行编辑并运行。
    
    在编辑器中使用 FastAPI 会真正地展现出它的优势:只需要编写很少的代码,所有的类型检查,代码补全等等。
    
    ---
    
    ## 安装 FastAPI
    
    第一个步骤是安装 FastAPI。
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Jun 24 14:47:15 GMT 2023
    - 2.5K bytes
    - Viewed (0)
Back to top