Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 221 for something (0.22 sec)

  1. docs/en/docs/tutorial/first-steps.md

    !!! info "`@decorator` Info"
        That `@something` syntax in Python is called a "decorator".
    
        You put it on top of a function. Like a pretty decorative hat (I guess that's where the term came from).
    
        A "decorator" takes the function below and does something with it.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  2. docs/en/docs/advanced/events.md

    ### Async Context Manager
    
    If you check, the function is decorated with an `@asynccontextmanager`.
    
    That converts the function into something called an "**async context manager**".
    
    ```Python hl_lines="1  13"
    {!../../../docs_src/events/tutorial003.py!}
    ```
    
    A **context manager** in Python is something that you can use in a `with` statement, for example, `open()` can be used as a context manager:
    
    ```Python
    with open("file.txt") as file:
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.8K bytes
    - Viewed (0)
  3. docs/en/docs/how-to/index.md

    Most of these ideas would be more or less **independent**, and in most cases you should only need to study them if they apply directly to **your project**.
    
    If something seems interesting and useful to your project, go ahead and check it, but otherwise, you might probably just skip them.
    
    !!! tip
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Aug 19 19:54:04 GMT 2023
    - 591 bytes
    - Viewed (0)
  4. cni/pkg/nodeagent/netns.go

    	netns io.Closer
    	fd    uintptr
    	inode uint64
    }
    
    func (n *NetnsWithFd) Close() error {
    	if n.netns == nil {
    		return nil
    	}
    
    	ret := n.netns.Close()
    	// set fd to invalid value, so if something uses it by mistake it will err
    	uintZero := uintptr(0)
    	n.fd = ^uintZero
    	return ret
    }
    
    func (n *NetnsWithFd) Fd() uintptr {
    	return n.fd
    }
    
    func (n *NetnsWithFd) Inode() uint64 {
    	return n.inode
    Go
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Jan 26 20:34:28 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  5. okhttp/src/test/java/okhttp3/CallHandshakeTest.kt

        val handshake = makeRequest(client)
    
        assertThat(handshake.cipherSuite).isIn(*expectedModernTls12CipherSuites.toTypedArray())
    
        // Probably something like
        // TLS_AES_128_GCM_SHA256
        // TLS_AES_256_GCM_SHA384
        // TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384
        // TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256
        // TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  6. regression-test/build.gradle.kts

        sourceCompatibility(JavaVersion.VERSION_11)
      }
    
      kotlinOptions {
        jvmTarget = JavaVersion.VERSION_11.toString()
      }
    
      // issue merging due to conflict with httpclient and something else
      packagingOptions.resources.excludes += setOf(
        "META-INF/DEPENDENCIES"
      )
    }
    
    
    dependencies {
      val okhttpLegacyVersion = "3.12.12"
    
      implementation(libs.kotlin.reflect)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 14:46:51 GMT 2023
    - 1.6K bytes
    - Viewed (0)
  7. .github/workflows/feedback.yml

      workflow_dispatch:
    
    permissions: {}
    
    jobs:
      feedback:
        permissions:
          issues: write
          pull-requests: write
        runs-on: ubuntu-latest
        steps:
          # Feedback loop: ask for something on PR/Issue and close if not provided or return to the queue on update.
          # https://github.com/gradle/issue-management-action/blob/main/src/feedback.ts
          - uses: gradle/issue-management-action@v1
            with:
    Others
    - Registered: Wed May 08 11:36:15 GMT 2024
    - Last Modified: Thu May 02 09:13:16 GMT 2024
    - 516 bytes
    - Viewed (0)
  8. .github/ISSUE_TEMPLATE/bug_report.yaml

    name: Bug Report
    description: Something is not working as expected
    labels: ["type=defect"]
    body:
      - type: markdown
        attributes:
          value: >
            Thank you for filing a bug report. Please help us identify and resolve the bug by filling
            out the following fields.
    
      - type: textarea
        attributes:
          label: Description
          description: Please describe the issue you encountered.
        validations:
          required: true
    
    Others
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 27 19:53:41 GMT 2023
    - 2.2K bytes
    - Viewed (0)
  9. architecture/networking/controllers.md

    # Controllers
    
    Istio has a variety of [controllers](https://kubernetes.io/docs/concepts/architecture/controller/), which basically watch some inputs and do something.
    This can be reading from Kubernetes and writing other objects back, writing to proxies over XDS, etc.
    
    Unfortunately, writing controllers is very error prone, even for seemingly simple cases.
    To work around this, Istio has a variety of abstractions meant to make writing controllers easier.
    
    ## Clients
    Plain Text
    - Registered: Wed May 01 22:53:12 GMT 2024
    - Last Modified: Fri Feb 09 17:41:25 GMT 2024
    - 4.9K bytes
    - Viewed (0)
  10. docs/en/docs/advanced/behind-a-proxy.md

        "servers": [
            {
                "url": "/api/v1"
            }
        ],
        "paths": {
                // More stuff here
        }
    }
    ```
    
    In this example, the "Proxy" could be something like **Traefik**. And the server would be something like FastAPI CLI with **Uvicorn**, running your FastAPI application.
    
    ### Providing the `root_path`
    
    To achieve this, you can use the command line option `--root-path` like:
    
    <div class="termy">
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 11.6K bytes
    - Viewed (2)
Back to top