Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 901 - 910 of 1,302 for EXAMPLE (0.06 seconds)

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

  1. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

              localPort = 80,
            ),
          )
        val requestLine = decodeRequestLine("CONNECT example.com:8080 HTTP/1.1")
        val request = RecordedRequest(requestLine, headers, emptyList(), 0, ByteString.EMPTY, 0, 0, socket)
        assertThat(request.target).isEqualTo("example.com:8080")
        assertThat(request.url.toString()).isEqualTo("http://example.com:8080/")
      }
    
      @Test fun testAbsoluteForm() {
        val socket =
          MockWebServerSocket(
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Sat Aug 02 20:36:00 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  2. docs_src/advanced_middleware/tutorial002_py310.py

    from fastapi import FastAPI
    from fastapi.middleware.trustedhost import TrustedHostMiddleware
    
    app = FastAPI()
    
    app.add_middleware(
        TrustedHostMiddleware, allowed_hosts=["example.com", "*.example.com"]
    )
    
    
    @app.get("/")
    async def main():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 279 bytes
    - Click Count (0)
  3. docs_src/behind_a_proxy/tutorial003_py310.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 405 bytes
    - Click Count (0)
  4. docs_src/behind_a_proxy/tutorial004_py310.py

    from fastapi import FastAPI, Request
    
    app = FastAPI(
        servers=[
            {"url": "https://stag.example.com", "description": "Staging environment"},
            {"url": "https://prod.example.com", "description": "Production environment"},
        ],
        root_path="/api/v1",
        root_path_in_servers=False,
    )
    
    
    @app.get("/app")
    def read_main(request: Request):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 437 bytes
    - Click Count (0)
  5. impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/UpgradeWorkflowIntegrationTest.java

                String pomContent = Files.readString(pomFile);
                assertTrue(
                        pomContent.contains("<groupId>com.example</groupId>"),
                        "Expected " + pomContent + " to contain " + "<groupId>com.example</groupId>");
                // Note: The exact modifications depend on which strategies are applicable
                // This test mainly verifies that apply goal can modify files
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Sep 17 10:01:14 GMT 2025
    - 9.3K bytes
    - Click Count (0)
  6. docs_src/settings/app02_py310/test_main.py

    
    def get_settings_override():
        return Settings(admin_email="testing_admin@example.com")
    
    
    app.dependency_overrides[get_settings] = get_settings_override
    
    
    def test_app():
        response = client.get("/info")
        data = response.json()
        assert data == {
            "app_name": "Awesome API",
            "admin_email": "testing_admin@example.com",
            "items_per_user": 50,
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 515 bytes
    - Click Count (0)
  7. tests/test_tutorial/test_advanced_middleware/test_tutorial002.py

    from docs_src.advanced_middleware.tutorial002_py310 import app
    
    
    def test_middleware():
        client = TestClient(app, base_url="http://example.com")
        response = client.get("/")
        assert response.status_code == 200, response.text
        client = TestClient(app, base_url="http://subdomain.example.com")
        response = client.get("/")
        assert response.status_code == 200, response.text
        client = TestClient(app, base_url="http://invalidhost")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 576 bytes
    - Click Count (0)
  8. docs_src/metadata/tutorial001_py310.py

        description=description,
        summary="Deadpool's favorite app. Nuff said.",
        version="0.0.1",
        terms_of_service="http://example.com/terms/",
        contact={
            "name": "Deadpoolio the Amazing",
            "url": "http://x-force.example.com/contact/",
            "email": "dp@x-force.example.com",
        },
        license_info={
            "name": "Apache 2.0",
            "url": "https://www.apache.org/licenses/LICENSE-2.0.html",
        },
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 805 bytes
    - Click Count (0)
  9. scripts/tests/test_translation_fixer/test_complex_doc/data/translated_doc_expected.md

    ```python
    # Это пример блока кода на Python
    def hello_world():
        # Комментарий с отступом
        print("Hello, world!")  # Печать приветствия
    ```
    
    ```toml
    # Это пример блока кода на TOML
    title = "TOML Example"  # Заголовок документа
    ```
    
    ```console
    // Используйте команду "live" и передайте код языка в качестве аргумента CLI
    $ python ./scripts/docs.py live es
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 08:08:04 GMT 2026
    - 10.9K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/internal/connection/RouteSelectorTest.kt

          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
            Proxy.NO_PROXY,
            InetSocketAddress(ipv4Address, 1003),
          ).toString(),
        ).isEqualTo("example.com at 1.2.3.4:1003")
        assertThat(
          Route(
            factory.newAddress(uriHost = "example.com", uriPort = 1003),
            Proxy(Proxy.Type.HTTP, InetSocketAddress.createUnresolved("proxy.example.com", 1003)),
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Oct 08 03:50:05 GMT 2025
    - 20.3K bytes
    - Click Count (0)
Back to Top