Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 361 - 370 of 695 for dependentes (0.07 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. docs_src/dependencies/tutorial006_an_py310.py

    async def verify_key(x_key: Annotated[str, Header()]):
        if x_key != "fake-super-secret-key":
            raise HTTPException(status_code=400, detail="X-Key header invalid")
        return x_key
    
    
    @app.get("/items/", dependencies=[Depends(verify_token), Depends(verify_key)])
    async def read_items():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 633 bytes
    - Click Count (0)
  2. samples/guide/build.gradle.kts

    plugins {
      kotlin("jvm")
      id("okhttp.jvm-conventions")
      id("okhttp.quality-conventions")
      id("okhttp.testing-conventions")
      id("com.google.devtools.ksp")
    }
    
    dependencies {
      "friendsImplementation"(projects.okhttp)
      implementation(projects.mockwebserver)
      implementation(projects.okhttpTestingSupport)
      implementation(projects.okhttpTls)
      implementation(libs.animalsniffer.annotations)
      implementation(libs.square.moshi)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 569 bytes
    - Click Count (0)
  3. okhttp-logging-interceptor/build.gradle.kts

      id("okhttp.testing-conventions")
    }
    
    project.applyOsgi(
      "Export-Package: okhttp3.logging",
      "Bundle-SymbolicName: com.squareup.okhttp3.logging",
    )
    
    project.applyJavaModules("okhttp3.logging")
    
    dependencies {
      "friendsApi"(projects.okhttp)
    
      testImplementation(libs.junit)
      testImplementation(projects.mockwebserver3)
      testImplementation(projects.mockwebserver3Junit5)
      testImplementation(projects.okhttpTestingSupport)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 633 bytes
    - Click Count (0)
  4. .teamcity/src/main/kotlin/util/WarmupEc2Agent.kt

        params {
            param("defaultBranchName", "master")
            param("env.JAVA_HOME", javaHome(BuildToolBuildJvm, Os.LINUX))
        }
    
        steps {
            gradleWrapper {
                name = "Resolve all dependencies"
                tasks = "resolveAllDependencies"
                gradleParams =
                    (
                        buildToolGradleParameters(isContinue = false) + listOf("--dependency-verification", "lenient")
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Feb 12 09:12:03 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  5. docs/en/docs/reference/request.md

    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import Request
    ```
    
    /// tip
    
    When you want to define dependencies that should be compatible with both HTTP and WebSockets, you can define a parameter that takes an `HTTPConnection` instead of a `Request` or a `WebSocket`.
    
    ///
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 12:41:54 GMT 2026
    - 652 bytes
    - Click Count (0)
  6. tests/test_response_change_status_code.py

    app = FastAPI()
    
    
    async def response_status_setter(response: Response):
        response.status_code = 201
    
    
    async def parent_dep(result=Depends(response_status_setter)):
        return result
    
    
    @app.get("/", dependencies=[Depends(parent_dep)])
    async def get_main():
        return {"msg": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_dependency_set_status_code():
        response = client.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Apr 08 04:37:38 GMT 2020
    - 589 bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/JdkDownloadPlugin.java

                Jdk jdk = new Jdk(name, configuration, project.getObjects());
                configuration.defaultDependencies(dependencies -> {
                    jdk.finalizeValues();
                    setupRepository(project, jdk);
                    dependencies.add(project.getDependencies().create(dependencyNotation(jdk)));
                });
                return jdk;
            });
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Sep 27 19:29:10 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  8. okhttp-zstd/build.gradle.kts

      id("okhttp.testing-conventions")
    }
    
    project.applyOsgi(
      "Export-Package: okhttp3.zstd",
      "Automatic-Module-Name: okhttp3.zstd",
      "Bundle-SymbolicName: com.squareup.okhttp3.zstd",
    )
    
    dependencies {
      "friendsApi"(projects.okhttp)
      implementation(libs.square.zstd.kmp.okio)
    
      testImplementation(projects.okhttpBrotli)
      testImplementation(projects.okhttpTestingSupport)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 630 bytes
    - Click Count (0)
  9. build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild.java-shared-runtime.gradle.kts

        sourceCompatibility = JavaVersion.VERSION_1_8
        targetCompatibility = JavaVersion.VERSION_1_8
    }
    
    testing {
        suites {
            val test by getting(JvmTestSuite::class) {
                useSpock()
                dependencies {
                    implementation(platform("gradlebuild:build-platform"))
                }
            }
        }
    Created: Wed Apr 01 11:36:16 GMT 2026
    - Last Modified: Wed Jan 22 14:28:13 GMT 2025
    - 699 bytes
    - Click Count (0)
  10. samples/tlssurvey/build.gradle.kts

      id("okhttp.quality-conventions")
      id("okhttp.testing-conventions")
      application
      id("com.google.devtools.ksp")
    }
    
    application {
      mainClass.set("okhttp3.survey.RunSurveyKt")
    }
    
    dependencies {
      implementation(projects.okhttp)
      implementation(projects.okhttpCoroutines)
      implementation(libs.conscrypt.openjdk)
    
      implementation(libs.square.retrofit)
      implementation(libs.square.retrofit.converter.moshi)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Feb 03 22:17:59 GMT 2026
    - 636 bytes
    - Click Count (0)
Back to Top