Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 694 for toSend (0.07 sec)

  1. docs_src/security/tutorial001.py

    from fastapi import Depends, FastAPI
    from fastapi.security import OAuth2PasswordBearer
    
    app = FastAPI()
    
    oauth2_scheme = OAuth2PasswordBearer(tokenUrl="token")
    
    
    @app.get("/items/")
    async def read_items(token: str = Depends(oauth2_scheme)):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 10 17:28:18 UTC 2020
    - 269 bytes
    - Viewed (0)
  2. tests/test_tutorial/test_dependencies/test_tutorial012_an_py39.py

            "/users/", headers={"X-Token": "fake-super-secret-token", "X-Key": "invalid"}
        )
        assert response.status_code == 400, response.text
        assert response.json() == {"detail": "X-Key header invalid"}
    
    
    @needs_py39
    def test_get_valid_headers_items(client: TestClient):
        response = client.get(
            "/items/",
            headers={
                "X-Token": "fake-super-secret-token",
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb/SpnegoContext.java

        private static SpnegoToken getToken ( byte[] token, int off, int len ) throws SpnegoException {
            byte[] b = new byte[len];
            if ( off == 0 && token.length == len ) {
                b = token;
            }
            else {
                System.arraycopy(token, off, b, 0, len);
            }
            return getToken(b);
        }
    
    
        private static SpnegoToken getToken ( byte[] token ) throws SpnegoException {
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Mon Jan 04 04:18:31 UTC 2021
    - 14.8K bytes
    - Viewed (0)
  4. tests/test_tutorial/test_websockets/test_tutorial002.py

        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/bar/ws?token=some-token") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: some-token"
                data = websocket.receive_text()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Nov 13 14:26:09 UTC 2022
    - 3.6K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_websockets/test_tutorial002_py310.py

        with pytest.raises(WebSocketDisconnect):
            with client.websocket_connect("/items/bar/ws?token=some-token") as websocket:
                message = "Message one"
                websocket.send_text(message)
                data = websocket.receive_text()
                assert data == "Session cookie or query token value is: some-token"
                data = websocket.receive_text()
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/admin/AccessTokenTests.java

            String token = JsonPath.from(response).get("response.setting.token");
            checkGetMethod(requestBody, ITEM_ENDPOINT_SUFFIX + "/" + id).then()
                    .body("response." + ITEM_ENDPOINT_SUFFIX + ".name", equalTo(name))
                    .body("response." + ITEM_ENDPOINT_SUFFIX + ".token", equalTo(token));
        }
    
        @Test
        void crudTest() {
            testCreate();
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  7. internal/config/lambda/event/targetid.go

    	return nil
    }
    
    // parseTargetID - parses string to TargetID.
    func parseTargetID(s string) (*TargetID, error) {
    	tokens := strings.Split(s, ":")
    	if len(tokens) != 2 {
    		return nil, fmt.Errorf("invalid TargetID format '%v'", s)
    	}
    
    	return &TargetID{
    		ID:   tokens[0],
    		Name: tokens[1],
    	}, nil
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 1.8K bytes
    - Viewed (0)
  8. test-site/activator.bat

    set CFG_OPTS=
    if exist %CFG_FILE_VERSION% (
      FOR /F "tokens=* eol=# usebackq delims=" %%i IN ("%CFG_FILE_VERSION%") DO (
        set DO_NOT_REUSE_ME=%%i
        rem ZOMG (Part #2) WE use !! here to delay the expansion of
        rem CFG_OPTS, otherwise it remains "" for this loop.
        set CFG_OPTS=!CFG_OPTS! !DO_NOT_REUSE_ME!
      )
    )
    if "%CFG_OPTS%"=="" (
      if exist %CFG_FILE_HOME% (
        FOR /F "tokens=* eol=# usebackq delims=" %%i IN ("%CFG_FILE_HOME%") DO (
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 7.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_bigger_applications/test_main_an_py39.py

        response = client.get("/users?token=monica")
        assert response.status_code == 400
        assert response.json() == {"detail": "No Jessica token provided"}
    
    
    @needs_py39
    def test_items_token_jessica(client: TestClient):
        response = client.get(
            "/items?token=jessica", headers={"X-Token": "fake-super-secret-token"}
        )
        assert response.status_code == 200
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  10. src/main/java/jcifs/internal/smb2/session/Smb2SessionSetupRequest.java

            SMBUtil.writeInt2(this.token != null ? this.token.length : 0, dst, dstIndex);
            dstIndex += 2;
            SMBUtil.writeInt8(this.previousSessionId, dst, dstIndex);
            dstIndex += 8;
            SMBUtil.writeInt2(dstIndex - getHeaderStart(), dst, offsetOffset);
    
            dstIndex += pad8(dstIndex);
    
            if ( this.token != null ) {
                System.arraycopy(this.token, 0, dst, dstIndex, this.token.length);
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 4.2K bytes
    - Viewed (0)
Back to top