Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 181 - 190 of 5,958 for retain (0.11 seconds)

  1. internal/http/dial_linux.go

    		if err != nil {
    			return nil, err
    		}
    		if opts.DriveOPTimeout != nil {
    			// Read deadlines are sufficient for now as per various
    			// scenarios of hung node detection, we may add Write deadlines
    			// if needed later on.
    			return deadlineconn.New(conn).WithReadDeadline(opts.DriveOPTimeout()), nil
    		}
    		return conn, nil
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jul 23 10:53:03 GMT 2024
    - 5K bytes
    - Click Count (0)
  2. docs_src/dependencies/tutorial008c_an_py39.py

                f"The portal gun is too dangerous to be owned by {username}"
            )
        if item_id != "plumbus":
            raise HTTPException(
                status_code=404, detail="Item not found, there's only a plumbus here"
            )
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Feb 24 23:06:37 GMT 2024
    - 700 bytes
    - Click Count (0)
  3. fastapi/routing.py

                validation_error = RequestValidationError(
                    errors, body=body, endpoint_ctx=endpoint_ctx
                )
                raise validation_error
    
            # Return response
            assert response
            return response
    
        return app
    
    
    def get_websocket_app(
        dependant: Dependant,
        dependency_overrides_provider: Optional[Any] = None,
        embed_body_fields: bool = False,
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Dec 27 12:54:56 GMT 2025
    - 174.6K bytes
    - Click Count (0)
  4. tests/test_tutorial/test_first_steps/test_tutorial001_tutorial002_tutorial003.py

        mod = importlib.import_module(f"docs_src.first_steps.{request.param}")
        client = TestClient(mod.app)
        return client
    
    
    @pytest.mark.parametrize(
        "path,expected_status,expected_response",
        [
            ("/", 200, {"message": "Hello World"}),
            ("/nonexistent", 404, {"detail": "Not Found"}),
        ],
    )
    def test_get_path(client: TestClient, path, expected_status, expected_response):
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Fri Dec 26 10:43:02 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  5. docs/de/docs/tutorial/security/simple-oauth2.md

    Eine ausführlichere Erklärung von `**user_dict` finden Sie in [der Dokumentation für **Extra Modelle**](../extra-models.md#about-user-in-dict){.internal-link target=_blank}.
    
    ///
    
    ## Den Token zurückgeben { #return-the-token }
    
    Die <abbr title="Response – Antwort: Daten, die der Server zum anfragenden Client zurücksendet">Response</abbr> des `token`-Endpunkts muss ein JSON-Objekt sein.
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sat Sep 20 15:10:09 GMT 2025
    - 11.2K bytes
    - Click Count (0)
  6. docs/en/docs/tutorial/security/simple-oauth2.md

    ```
    
    /// info
    
    For a more complete explanation of `**user_dict` check back in [the documentation for **Extra Models**](../extra-models.md#about-user-in-dict){.internal-link target=_blank}.
    
    ///
    
    ## Return the token { #return-the-token }
    
    The response of the `token` endpoint must be a JSON object.
    
    It should have a `token_type`. In our case, as we are using "Bearer" tokens, the token type should be "`bearer`".
    
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Sun Aug 31 09:15:41 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  7. tests/test_security_http_base.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    security = HTTPBase(scheme="Other")
    
    
    @app.get("/users/me")
    def read_current_user(credentials: HTTPAuthorizationCredentials = Security(security)):
        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_base():
        response = client.get("/users/me", headers={"Authorization": "Other foobar"})
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  8. tests/submodel_test.go

    import (
    	"testing"
    
    	"gorm.io/gorm"
    )
    
    type Man struct {
    	ID     int
    	Age    int
    	Name   string
    	Detail string
    }
    
    // Panic-safe BeforeUpdate hook that checks for Changed("age")
    func (m *Man) BeforeUpdate(tx *gorm.DB) (err error) {
    	if !tx.Statement.Changed("age") {
    		return nil
    	}
    	return nil
    }
    
    func TestSubModel(t *testing.T) {
    	man := Man{Age: 18, Name: "random-name"}
    Created: Sun Dec 28 09:35:17 GMT 2025
    - Last Modified: Mon Sep 08 09:19:22 GMT 2025
    - 947 bytes
    - Click Count (0)
  9. architecture/build-execution-model.md

    # Build execution model
    
    At the highest level, Gradle's execution model is quite simple:
    
    Below is the protocol in some more detail:
    
    1. The client looks for a compatible idle daemon. If there isn't one, it starts a new daemon.
    2. The client connects to the idle daemon and sends it a request to do some work. If the daemon is no longer running, the client starts again.
    Created: Wed Dec 31 11:36:14 GMT 2025
    - Last Modified: Thu Jun 12 09:50:57 GMT 2025
    - 907 bytes
    - Click Count (0)
  10. tests/test_security_openid_connect.py

    
    class User(BaseModel):
        username: str
    
    
    def get_current_user(oauth_header: str = Security(oid)):
        user = User(username=oauth_header)
        return user
    
    
    @app.get("/users/me")
    def read_current_user(current_user: User = Depends(get_current_user)):
        return current_user
    
    
    client = TestClient(app)
    
    
    def test_security_oauth2():
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Mon Nov 24 19:03:06 GMT 2025
    - 2.3K bytes
    - Click Count (0)
Back to Top