Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1161 - 1170 of 1,349 for request (0.04 seconds)

  1. docs/zh/docs/tutorial/testing.md

    ```
    
    ////
    
    ### 扩展后的测试文件
    
    然后您可以使用扩展后的测试更新`test_main.py`:
    
    {* ../../docs_src/app_testing/app_b/test_main.py *}
    
    每当你需要客户端在请求中传递信息,但你不知道如何传递时,你可以通过搜索(谷歌)如何用 `httpx`做,或者是用 `requests` 做,毕竟HTTPX的设计是基于Requests的设计的。
    
    接着只需在测试中同样操作。
    
    示例:
    
    * 传一个*路径* 或*查询* 参数,添加到URL上。
    * 传一个JSON体,传一个Python对象(例如一个`dict`)到参数 `json`。
    * 如果你需要发送 *Form Data* 而不是 JSON,使用 `data` 参数。
    * 要发送 *headers*,传 `dict` 给 `headers` 参数。
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Oct 11 17:48:49 GMT 2025
    - 5.9K bytes
    - Click Count (0)
  2. ci/official/containers/ml_build/builder.requirements.txt

    # For wheel verification, and uploading
    auditwheel ~= 6.1.0
    twine ~= 6.1.0
    id
    urllib3
    requests
    
    # For XLA
    pyyaml
    
    # For JAX
    build ~= 1.2.2
    # uv is faster than pip for installing Python packages.
    uv ~= 0.5.30
    
    # For running wheel verification script
    Created: Tue Dec 30 12:39:10 GMT 2025
    - Last Modified: Thu Oct 30 20:25:44 GMT 2025
    - 271 bytes
    - Click Count (0)
  3. tests/test_http_connection_injection.py

    from fastapi import Depends, FastAPI
    from fastapi.requests import HTTPConnection
    from fastapi.testclient import TestClient
    from starlette.websockets import WebSocket
    
    app = FastAPI()
    app.state.value = 42
    
    
    async def extract_value_from_http_connection(conn: HTTPConnection):
        return conn.app.state.value
    
    
    @app.get("/http")
    async def get_value_by_http(value: int = Depends(extract_value_from_http_connection)):
        return value
    
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 09 13:56:41 GMT 2020
    - 972 bytes
    - Click Count (0)
  4. .github/workflows/labeler.yml

    name: "Issue Labeler"
    on:
      issues:
        types: [opened, edited, reopened]
      pull_request:
        types: [opened, edited, reopened]
    
    jobs:
      triage:
        runs-on: ubuntu-latest
        name: Label issues and pull requests
        steps:
          - name: check out
            uses: actions/checkout@v4
    
          - name: labeler
            uses: jinzhu/super-labeler-action@develop
            with:
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Tue Oct 10 06:50:45 GMT 2023
    - 423 bytes
    - Click Count (0)
  5. .github/workflows/auto-assign-pr-to-author.yml

    on:
      pull_request:
        types: [opened]
    
    permissions: {}
    
    jobs:
      add-reviews:
        permissions:
          contents: read  # for kentaro-m/auto-assign-action to fetch config file
          pull-requests: write  # for kentaro-m/auto-assign-action to assign PR reviewers
        runs-on: ubuntu-latest
        steps:
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Tue Nov 12 13:13:58 GMT 2024
    - 381 bytes
    - Click Count (0)
  6. .github/workflows/pull-metadata.yml

    name: Check pulls metadata
    
    on:
      pull_request_target:
        types: [ closed, unlabeled, milestoned, demilestoned ]
    
    permissions: {}
    
    jobs:
      check_pull_metadata:
        permissions:
          issues: write
          pull-requests: write
        runs-on: ubuntu-latest
        steps:
          # Check that PRs have proper metadata: labels and milestone
          # https://github.com/gradle/issue-management-action/blob/main/src/pull-metadata.ts
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Mon Aug 11 09:00:56 GMT 2025
    - 480 bytes
    - Click Count (0)
  7. build-logic-commons/basics/src/main/kotlin/gradlebuild.minify.gradle.kts

                        val requested = this.requested as? ModuleComponentSelector ?: return@all
                        keepPatterns.forEach { coordinates, _ ->
                            if ("${requested.group}:${requested.module}" == coordinates) {
                                val updated = DefaultModuleComponentSelector.withAttributes(
                                    requested,
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Dec 25 16:18:05 GMT 2025
    - 5.6K bytes
    - Click Count (0)
  8. docs/de/docs/deployment/fastapicloud.md

    Es kümmert sich außerdem um das meiste, was beim Deployen einer App nötig ist, zum Beispiel:
    
    * HTTPS
    * Replikation, mit Autoscaling basierend auf Requests
    * usw.
    
    FastAPI Cloud ist Hauptsponsor und Finanzierer der Open-Source-Projekte *FastAPI and friends*. ✨
    
    ## Bei anderen Cloudanbietern deployen { #deploy-to-other-cloud-providers }
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Tue Dec 02 17:32:56 GMT 2025
    - 2.2K bytes
    - Click Count (0)
  9. cmd/api-utils.go

    			t[j+2] = "0123456789ABCDEF"[c&15]
    			j += 3
    		default:
    			t[j] = s[i]
    			j++
    		}
    	}
    	return string(t)
    }
    
    // s3EncodeName encodes string in response when encodingType is specified in AWS S3 requests.
    func s3EncodeName(name, encodingType string) string {
    	if strings.ToLower(encodingType) == "url" {
    		return s3URLEncode(name)
    	}
    	return name
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue May 27 15:19:03 GMT 2025
    - 2.8K bytes
    - Click Count (0)
  10. internal/http/dial_dnscache.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"context"
    	"net"
    	"time"
    )
    
    // LookupHost is a function to make custom lookupHost for optional cached DNS requests
    type LookupHost func(ctx context.Context, host string) (addrs []string, err error)
    
    // DialContextWithLookupHost is a helper function which returns `net.DialContext` function.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 2.6K bytes
    - Click Count (0)
Back to Top