Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 193 for Allain (0.17 sec)

  1. docs_src/security/tutorial005_an_py310.py

    oauth2_scheme = OAuth2PasswordBearer(
        tokenUrl="token",
        scopes={"me": "Read information about the current user.", "items": "Read items."},
    )
    
    app = FastAPI()
    
    
    def verify_password(plain_password, hashed_password):
        return pwd_context.verify(plain_password, hashed_password)
    
    
    def get_password_hash(password):
        return pwd_context.hash(password)
    
    
    def get_user(db, username: str):
        if username in db:
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Mar 26 16:56:53 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/EventListenerTest.kt

        requestBodySuccess(
          "Hello".toRequestBody("text/plain".toMediaType()),
          CoreMatchers.equalTo(5L),
          CoreMatchers.equalTo(19L),
        )
      }
    
      @Test
      fun requestBodySuccessHttp() {
        requestBodySuccess(
          "Hello".toRequestBody("text/plain".toMediaType()),
          CoreMatchers.equalTo(5L),
          CoreMatchers.equalTo(19L),
        )
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 56.9K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/SortedIterablesTest.java

      public void testSameComparator() {
        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  4. cmd/metrics-v3-handler.go

    			jsonEncoder := json.NewEncoder(w)
    			jsonEncoder.Encode(metrics)
    			return
    		}
    
    		// If not JSON, return plain text. We format it as a markdown table for
    		// readability.
    		w.Header().Set("Content-Type", "text/plain")
    		var b strings.Builder
    		b.WriteString("| Name | Type | Help | Labels |\n")
    		b.WriteString("| ---- | ---- | ---- | ------ |\n")
    		for _, metric := range metrics {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu May 02 17:37:57 GMT 2024
    - 7.5K bytes
    - Viewed (0)
  5. docs/de/docs/tutorial/security/index.md

    # Sicherheit
    
    Es gibt viele Wege, Sicherheit, Authentifizierung und Autorisierung zu handhaben.
    
    Und normalerweise ist es ein komplexes und „schwieriges“ Thema.
    
    In vielen Frameworks und Systemen erfordert allein die Handhabung von Sicherheit und Authentifizierung viel Aufwand und Code (in vielen Fällen kann er 50 % oder mehr des gesamten geschriebenen Codes ausmachen).
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Sat Mar 30 18:09:35 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an_py39.py

                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "file_size": 14,
            "token": "foo",
            "fileb_content_type": "text/plain",
        }
    
    
    @needs_py39
    def test_openapi_schema(client: TestClient):
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/SortedIterablesTest.java

      public void testSameComparator() {
        assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Sets.newTreeSet()));
        // Before JDK6 (including under GWT), the TreeMap keySet is a plain Set.
        if (Maps.newTreeMap().keySet() instanceof SortedSet) {
          assertTrue(SortedIterables.hasSameComparator(Ordering.natural(), Maps.newTreeMap().keySet()));
        }
        assertTrue(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 1.5K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "file_size": 14,
            "token": "foo",
            "fileb_content_type": "text/plain",
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. docs/en/docs/deployment/https.md

    <img src="/img/deployment/https/https05.svg">
    
    ### HTTP Response
    
    The application would process the request and send a **plain (unencrypted) HTTP response** to the TLS Termination Proxy.
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu Jan 11 16:31:18 GMT 2024
    - 12K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

                data={"token": "foo"},
                files={"file": filea, "fileb": ("testb.txt", fileb, "text/plain")},
            )
        assert response.status_code == 200, response.text
        assert response.json() == {
            "file_size": 14,
            "token": "foo",
            "fileb_content_type": "text/plain",
        }
    
    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
Back to top