Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 131 - 140 of 319 for Lines (0.02 seconds)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

            if (relocationsEntries == null) {
                return null;
            }
            String[] entries = relocationsEntries.split(",");
            try (Stream<String> lines = Arrays.stream(entries)) {
                List<Relocation> relocationList = lines.filter(
                                l -> l != null && !l.trim().isEmpty())
                        .map(l -> {
                            boolean global;
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Oct 16 06:12:36 GMT 2025
    - 9K bytes
    - Click Count (0)
  2. build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java

                }
            }
    
            private String getPackageName(File file) throws IOException {
                try (Stream<String> lines = Files.lines(file.toPath())) {
                    String packageLine = lines.filter(line -> line.startsWith("package"))
                        .findFirst()
                        .orElseThrow(() -> new IOException("Can't find package definition in file " + file));
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Sun Mar 01 05:52:34 GMT 2026
    - 11.6K bytes
    - Click Count (0)
  3. fastapi/.agents/skills/fastapi/SKILL.md

    When needing to mix blocking and async code, see Asyncer in [the other tools reference](references/other-tools.md).
    
    ## Streaming (JSON Lines, SSE, bytes)
    
    See [the streaming reference](references/streaming.md) for JSON Lines, Server-Sent Events (`EventSourceResponse`, `ServerSentEvent`), and byte streaming (`StreamingResponse`) patterns.
    
    ## Tooling
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  4. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/MavenInvoker.java

                }
            }
    
            String[] lines = NEXT_LINE.split(msg);
            String currentColor = "";
    
            for (int i = 0; i < lines.length; i++) {
                // add eventual current color inherited from previous line
                String line = currentColor + lines[i];
    
                // look for last ANSI escape sequence to check if nextColor
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Thu Sep 11 17:20:46 GMT 2025
    - 28.2K bytes
    - Click Count (0)
  5. docs/en/docs/advanced/stream-data.md

    # Stream Data { #stream-data }
    
    If you want to stream data that can be structured as JSON, you should [Stream JSON Lines](../tutorial/stream-json-lines.md).
    
    But if you want to **stream pure binary data** or strings, here's how you can do it.
    
    /// info
    
    Added in FastAPI 0.134.0.
    
    ///
    
    ## Use Cases { #use-cases }
    
    You could use this if you want to stream pure strings, for example directly from the output of an **AI LLM** service.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  6. docs/en/docs/advanced/path-operation-advanced-configuration.md

    {* ../../docs_src/path_operation_advanced_configuration/tutorial003_py310.py hl[6] *}
    
    ## Advanced description from docstring { #advanced-description-from-docstring }
    
    You can limit the lines used from the docstring of a *path operation function* for OpenAPI.
    
    Adding an `\f` (an escaped "form feed" character) causes **FastAPI** to truncate the output used for OpenAPI at this point.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 05 18:13:19 GMT 2026
    - 7.1K bytes
    - Click Count (0)
  7. docs/zh/docs/tutorial/server-sent-events.md

    # 服务器发送事件(SSE) { #server-sent-events-sse }
    
    你可以使用**服务器发送事件**(SSE)向客户端流式发送数据。
    
    这类似于[流式传输 JSON Lines](stream-json-lines.md),但使用 `text/event-stream` 格式,浏览器原生通过 [`EventSource` API](https://developer.mozilla.org/en-US/docs/Web/API/EventSource) 支持。
    
    /// info | 信息
    
    新增于 FastAPI 0.135.0。
    
    ///
    
    ## 什么是服务器发送事件? { #what-are-server-sent-events }
    
    SSE 是一种通过 HTTP 从服务器向客户端流式传输数据的标准。
    
    每个事件是一个带有 `data`、`event`、`id` 和 `retry` 等“字段”的小文本块,以空行分隔。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 14:29:48 GMT 2026
    - 4.6K bytes
    - Click Count (0)
  8. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/UpdateAgpVersions.kt

            Jsoup.connect(buildToolsUrl)
                .get()
                .select("section:has(> h3#kts)")
                .first()
                ?.text()
                ?.lines()
                ?.firstOrNull { it.contains("buildToolsVersion = ") }
                ?.substringAfter("buildToolsVersion = ")
                ?.trim('"', ' ')
                ?: error("Couldn't find buildToolsVersion on $buildToolsUrl")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Fri Oct 24 09:10:29 GMT 2025
    - 7.6K bytes
    - Click Count (0)
  9. docs/en/docs/tutorial/security/get-current-user.md

    And all of them (or any portion of them that you want) can take advantage of re-using these dependencies or any other dependencies you create.
    
    And all these thousands of *path operations* can be as small as 3 lines:
    
    {* ../../docs_src/security/tutorial002_an_py310.py hl[30:32] *}
    
    ## Recap { #recap }
    
    You can now get the current user directly in your *path operation function*.
    
    We are already halfway there.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 4K bytes
    - Click Count (0)
  10. docs/zh-hant/docs/advanced/custom-response.md

    對於大型或無限的串流來說,這點更為重要。
    
    ///
    
    /// tip
    
    與其直接回傳 `StreamingResponse`,你大概會想遵循[資料串流](./stream-data.md)中的作法,這樣更方便,並且會在底層幫你處理取消。
    
    如果你要串流 JSON Lines,請參考教學:[串流 JSON Lines](../tutorial/stream-json-lines.md)。
    
    ///
    
    ### `FileResponse` { #fileresponse }
    
    以非同步串流方式將檔案作為回應。
    
    它在初始化時所需的參數與其他回應型別不同:
    
    - `path` - 要串流的檔案路徑。
    - `headers` - 要包含的自訂標頭,字典形式。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 10.3K bytes
    - Click Count (0)
Back to Top