Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1351 - 1360 of 1,563 for Header (0.07 seconds)

  1. docs/zh-hant/docs/tutorial/security/first-steps.md

        - 但該端點需要驗證。
        - 因此為了向 API 驗證,請求會帶上一個 `Authorization` 標頭,值為 `Bearer ` 加上 token。
        - 例如 token 是 `foobar`,則 `Authorization` 標頭內容為:`Bearer foobar`。
    
    ## FastAPI 的 `OAuth2PasswordBearer` { #fastapis-oauth2passwordbearer }
    
    FastAPI 提供多層抽象的工具來實作這些安全機制。
    
    本例將使用 OAuth2 的 Password 流程,並以 Bearer token 進行驗證;我們會用 `OAuth2PasswordBearer` 類別來完成。
    
    /// info
    
    「Bearer」token 不是唯一選項。
    
    但對本例最合適。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 7.2K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/security/first-steps.md

        * 因此,为了与我们的 API 进行身份验证,它会发送一个 `Authorization` 请求头,值为 `Bearer ` 加上令牌。
        * 如果令牌内容是 `foobar`,`Authorization` 请求头的内容就是:`Bearer foobar`。
    
    ## **FastAPI** 的 `OAuth2PasswordBearer` { #fastapis-oauth2passwordbearer }
    
    **FastAPI** 在不同抽象层级提供了多种安全工具。
    
    本示例将使用 **OAuth2** 的 **Password** 流程并配合 **Bearer** 令牌,通过 `OAuth2PasswordBearer` 类来实现。
    
    /// info | 信息
    
    “Bearer” 令牌并非唯一选项。
    
    但它非常适合我们的用例。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  3. docs/de/docs/tutorial/request-forms.md

    # Formulardaten { #form-data }
    
    Wenn Sie Felder aus Formularen statt JSON empfangen müssen, können Sie `Form` verwenden.
    
    /// info | Info
    
    Um Formulare zu verwenden, installieren Sie zuerst [`python-multipart`](https://github.com/Kludex/python-multipart).
    
    Erstellen Sie unbedingt eine [virtuelle Umgebung](../virtual-environments.md), aktivieren Sie diese und installieren Sie dann das Paket, zum Beispiel:
    
    ```console
    $ pip install python-multipart
    ```
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  4. docs_src/security/tutorial004_an_py310.py

                detail="Incorrect username or password",
                headers={"WWW-Authenticate": "Bearer"},
            )
        access_token_expires = timedelta(minutes=ACCESS_TOKEN_EXPIRE_MINUTES)
        access_token = create_access_token(
            data={"sub": user.username}, expires_delta=access_token_expires
        )
        return Token(access_token=access_token, token_type="bearer")
    
    
    @app.get("/users/me/")
    async def read_users_me(
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 18:10:35 GMT 2026
    - 4.2K bytes
    - Click Count (0)
  5. internal/ioutil/wait_pipe.go

    		w.done()
    	})
    	return err
    }
    
    // PipeReader is similar to io.PipeReader with wait group
    type PipeReader struct {
    	*io.PipeReader
    	wait func()
    }
    
    // CloseWithError close with supplied error the reader end
    func (r *PipeReader) CloseWithError(err error) error {
    	err = r.PipeReader.CloseWithError(err)
    	r.wait()
    	return err
    }
    
    // WaitPipe implements wait-group backend io.Pipe to provide
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Thu Apr 27 14:55:36 GMT 2023
    - 1.7K bytes
    - Click Count (0)
  6. cmd/bitrot-streaming.go

    	}()
    	return bw
    }
    
    // ReadAt() implementation which verifies the bitrot hash available as part of the stream.
    type streamingBitrotReader struct {
    	disk       StorageAPI
    	data       []byte
    	rc         io.Reader
    	volume     string
    	filePath   string
    	tillOffset int64
    	currOffset int64
    	h          hash.Hash
    	shardSize  int64
    	hashBytes  []byte
    }
    
    func (b *streamingBitrotReader) Close() error {
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Jan 17 19:19:30 GMT 2025
    - 6.2K bytes
    - Click Count (0)
  7. cmd/storage-interface.go

    	AppendFile(ctx context.Context, volume string, path string, buf []byte) (err error)
    	CreateFile(ctx context.Context, origvolume, olume, path string, size int64, reader io.Reader) error
    	ReadFileStream(ctx context.Context, volume, path string, offset, length int64) (io.ReadCloser, error)
    	RenameFile(ctx context.Context, srcVolume, srcPath, dstVolume, dstPath string) error
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Apr 25 05:41:04 GMT 2025
    - 5.3K bytes
    - Click Count (0)
  8. tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py

            f"docs_src.authentication_error_status_code.{request.param}"
        )
    
        client = TestClient(mod.app)
        return client
    
    
    def test_get_me(client: TestClient):
        response = client.get("/me", headers={"Authorization": "Bearer secrettoken"})
        assert response.status_code == 200
        assert response.json() == {
            "message": "You are authenticated",
            "token": "secrettoken",
        }
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 1.9K bytes
    - Click Count (0)
  9. src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java

            QueryLogReader emptyReader = new QueryLogReader() {
                @Override
                public QueryLog read() {
                    return null; // Empty reader
                }
    
                @Override
                public void close() {
                }
            };
    
            CountDownLatch latch = new CountDownLatch(1);
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Sat Mar 14 02:35:38 GMT 2026
    - 18.7K bytes
    - Click Count (0)
  10. docs/de/docs/tutorial/sql-databases.md

    Das `HeroUpdate`-*Datenmodell* ist etwas Besonderes, es hat **die selben Felder**, die benötigt werden, um einen neuen Helden zu erstellen, aber alle Felder sind **optional** (sie haben alle einen Defaultwert). Auf diese Weise, wenn Sie einen Helden aktualisieren, können Sie nur die Felder senden, die Sie aktualisieren möchten.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 17:58:09 GMT 2026
    - 17.7K bytes
    - Click Count (0)
Back to Top