Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 291 - 300 of 1,159 for MAIN (0.03 seconds)

  1. docs_src/advanced_middleware/tutorial001_py310.py

    from fastapi import FastAPI
    from fastapi.middleware.httpsredirect import HTTPSRedirectMiddleware
    
    app = FastAPI()
    
    app.add_middleware(HTTPSRedirectMiddleware)
    
    
    @app.get("/")
    async def main():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 231 bytes
    - Click Count (0)
  2. docs/zh-hant/docs/fastapi-cli.md

    ├── backend
    │   ├── main.py
    │   ├── __init__.py
    ```
    
    那麼你應該把 `entrypoint` 設為:
    
    ```toml
    [tool.fastapi]
    entrypoint = "backend.main:app"
    ```
    
    這等同於:
    
    ```python
    from backend.main import app
    ```
    
    ### 帶路徑的 `fastapi dev` { #fastapi-dev-with-path }
    
    你也可以把檔案路徑傳給 `fastapi dev` 指令,它會推測要使用的 FastAPI app 物件:
    
    ```console
    $ fastapi dev main.py
    ```
    
    但這樣每次呼叫 `fastapi` 指令時都得記得傳入正確的路徑。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.8K bytes
    - Click Count (0)
  3. benchmarks/build.gradle

     * in compliance with, at your election, the Elastic License 2.0 or the Server
     * Side Public License, v 1.
     */
    
    apply plugin: 'elasticsearch.java'
    apply plugin: 'application'
    mainClassName = 'org.openjdk.jmh.Main'
    
    tasks.named("assemble").configure { enabled = false }
    archivesBaseName = 'elasticsearch-benchmarks'
    
    tasks.named("test").configure { enabled = false }
    
    configurations {
      expression
      painless
    }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 08 22:04:23 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  4. okhttp-brotli/src/test/java/okhttp3/brotli/BrotliTestMain.kt

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    package okhttp3.brotli
    
    import okhttp3.OkHttpClient
    import okhttp3.Request
    
    fun main() {
      val client =
        OkHttpClient
          .Builder()
          .addInterceptor(BrotliInterceptor)
          .build()
    
      sendRequest("https://httpbin.org/brotli", client)
      sendRequest("https://httpbin.org/gzip", client)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.1K bytes
    - Click Count (1)
  5. src/main/webapp/WEB-INF/view/admin/accesstoken/admin_accesstoken_edit.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="accessToken"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6.1K bytes
    - Click Count (0)
  6. src/main/webapp/WEB-INF/view/admin/dict/mapping/admin_dict_mapping_download.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="dict"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6K bytes
    - Click Count (0)
  7. src/main/webapp/WEB-INF/view/admin/dict/stemmeroverride/admin_dict_stemmeroverride_upload.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="dict"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6.4K bytes
    - Click Count (0)
  8. src/main/webapp/WEB-INF/view/admin/dict/synonym/admin_dict_synonym_download.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="dict"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6K bytes
    - Click Count (0)
  9. src/main/webapp/WEB-INF/view/admin/elevateword/admin_elevateword.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="suggest"/>
            <jsp:param name="menuType" value="elevateWord"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6.7K bytes
    - Click Count (0)
  10. src/main/webapp/WEB-INF/view/admin/plugin/admin_plugin_installplugin.jsp

        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="system"/>
            <jsp:param name="menuType" value="plugin"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
                        <div class="col-sm-6">
                            <h1>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 5.9K bytes
    - Click Count (0)
Back to Top