Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 441 - 450 of 1,334 for headerKV (0.18 seconds)

  1. docs/zh-hant/docs/tutorial/testing.md

    然後在你的測試中做一樣的事即可。
    
    例如:
    
    * 要傳遞路徑或查詢參數,直接把它加在 URL 上。
    * 要傳遞 JSON 本文,將 Python 物件(例如 `dict`)傳給 `json` 參數。
    * 如果需要送出表單資料(Form Data)而不是 JSON,改用 `data` 參數。
    * 要傳遞標頭(headers),在 `headers` 參數中放一個 `dict`。
    * 對於 Cookie(cookies),在 `cookies` 參數中放一個 `dict`。
    
    關於如何把資料傳給後端(使用 `httpx` 或 `TestClient`),更多資訊請參考 [HTTPX 文件](https://www.python-httpx.org)。
    
    /// info
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 5.6K bytes
    - Click Count (0)
  2. docs/zh/docs/tutorial/testing.md

    接着只需在测试中同样操作。
    
    示例:
    
    * 传一个*路径* 或*查询* 参数,添加到URL上。
    * 传一个JSON体,传一个Python对象(例如一个`dict`)到参数 `json`。
    * 如果你需要发送 *Form Data* 而不是 JSON,使用 `data` 参数。
    * 要发送 *headers*,传 `dict` 给 `headers` 参数。
    * 对于 *cookies*,传 `dict` 给 `cookies` 参数。
    
    关于如何传数据给后端的更多信息(使用 `httpx` 或 `TestClient`),请查阅 [HTTPX 文档](https://www.python-httpx.org)。
    
    /// info | 信息
    
    注意 `TestClient` 接收可以被转化为JSON的数据,而不是Pydantic模型。
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:06:37 GMT 2026
    - 5.4K bytes
    - Click Count (0)
  3. src/test/java/jcifs/smb1/netbios/SocketInputStreamTest.java

     * Tests the NetBIOS session layer protocol implementation.
     */
    @ExtendWith(MockitoExtension.class)
    class SocketInputStreamTest {
    
        /**
         * Creates a NetBIOS session message header.
         * The header format is:
         * - Byte 0: Message type (0x00 for SESSION_MESSAGE)
         * - Byte 1: High bit of 17-bit length field
         * - Bytes 2-3: Lower 16 bits of length field
         */
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 14.2K bytes
    - Click Count (0)
  4. src/main/webapp/WEB-INF/view/admin/fileauth/admin_fileauth_details.jsp

                                    <%-- Card Header --%>
                                <div class="card-header">
                                    <jsp:include page="/WEB-INF/view/common/admin/crud/header.jsp"></jsp:include>
                                </div>
                                    <%-- Card Body --%>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 6.3K bytes
    - Click Count (0)
  5. src/main/webapp/WEB-INF/view/admin/labeltype/admin_labeltype_details.jsp

                                    <%-- Card Header --%>
                                <div class="card-header">
                                    <jsp:include page="/WEB-INF/view/common/admin/crud/header.jsp"></jsp:include>
                                </div>
                                    <%-- Card Body --%>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Mon Feb 23 08:03:44 GMT 2026
    - 5.7K bytes
    - Click Count (0)
  6. src/main/webapp/WEB-INF/view/admin/maintenance/admin_maintenance.jsp

    <div class="wrapper">
        <jsp:include page="/WEB-INF/view/common/admin/header.jsp"></jsp:include>
        <jsp:include page="/WEB-INF/view/common/admin/sidebar.jsp">
            <jsp:param name="menuCategoryType" value="log"/>
            <jsp:param name="menuType" value="maintenance"/>
        </jsp:include>
        <main class="content-wrapper">
            <div class="content-header">
                <div class="container-fluid">
                    <div class="row mb-2">
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 17.3K bytes
    - Click Count (0)
  7. tests/test_response_code_no_body.py

    
    client = TestClient(app)
    
    
    def test_get_response():
        response = client.get("/a")
        assert response.status_code == 204, response.text
        assert "content-length" not in response.headers
        assert response.content == b""
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == snapshot(
            {
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Feb 08 10:18:38 GMT 2026
    - 3.5K bytes
    - Click Count (0)
  8. tests/test_security_http_bearer_optional.py

        return {"scheme": credentials.scheme, "credentials": credentials.credentials}
    
    
    client = TestClient(app)
    
    
    def test_security_http_bearer():
        response = client.get("/users/me", headers={"Authorization": "Bearer foobar"})
        assert response.status_code == 200, response.text
        assert response.json() == {"scheme": "Bearer", "credentials": "foobar"}
    
    
    def test_security_http_bearer_no_credentials():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.3K bytes
    - Click Count (0)
  9. tests/test_security_oauth2_authorization_code_bearer_description.py

    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Non-existent testtoken"})
        assert response.status_code == 401, response.text
        assert response.json() == {"detail": "Not authenticated"}
    
    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.5K bytes
    - Click Count (0)
  10. tests/test_security_oauth2_password_bearer_optional.py

    
    def test_token():
        response = client.get("/items", headers={"Authorization": "Bearer testtoken"})
        assert response.status_code == 200, response.text
        assert response.json() == {"token": "testtoken"}
    
    
    def test_incorrect_token():
        response = client.get("/items", headers={"Authorization": "Notexistent testtoken"})
        assert response.status_code == 200, response.text
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Tue Feb 17 09:59:14 GMT 2026
    - 2.2K bytes
    - Click Count (0)
Back to Top