Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 1,675 for Responses (0.04 sec)

  1. tests/test_dependency_contextmanager.py

    async def middleware(request, call_next):
        response: StreamingResponse = await call_next(request)
        response.headers["x-state"] = json.dumps(state.copy())
        return response
    
    
    client = TestClient(app)
    
    
    def test_async_state():
        assert state["/async"] == "asyncgen not started"
        response = client.get("/async")
        assert response.status_code == 200, response.text
        assert response.json() == "asyncgen started"
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 21:25:59 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/fess/app/web/api/admin/group/ApiAdminGroupAction.java

            }
            return asJson(new ApiResult.ApiUpdateResponse().id(id).created(false).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Creates an edit body from a group entity for API responses.
         *
         * @param entity the group entity to convert
         * @return edit body containing the entity data
         */
        protected EditBody createEditBody(final Group entity) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/api/admin/boostdoc/ApiAdminBoostdocAction.java

            });
            return asJson(new ApiResponse().status(Status.OK).result());
        }
    
        /**
         * Creates an EditBody from a BoostDocumentRule entity for API responses.
         *
         * @param entity the BoostDocumentRule entity to convert
         * @return the converted EditBody object
         */
        protected EditBody createEditBody(final BoostDocumentRule entity) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                assertSame(response1, result);
                assertSame(response2, result.getNext());
            }
    
            @Test
            @DisplayName("setResponse should accept valid response")
            void testSetResponse() {
                TestServerMessageBlock2Response response = new TestServerMessageBlock2Response(mockConfig);
    
                testRequest.setResponse(response);
    
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/app/web/api/admin/pathmap/ApiAdminPathmapAction.java

            }
            return asJson(new ApiResult.ApiUpdateResponse().id(id).created(false).status(ApiResult.Status.OK).result());
        }
    
        /**
         * Creates an edit body from a path mapping entity for API responses.
         *
         * @param entity the path mapping entity to convert
         * @return edit body containing the entity data
         */
        protected EditBody createEditBody(final PathMapping entity) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/app/web/api/admin/relatedcontent/ApiAdminRelatedcontentAction.java

            });
            return asJson(new ApiResponse().status(Status.OK).result());
        }
    
        /**
         * Creates an edit body from a related content entity for API responses.
         *
         * @param entity the related content entity to convert
         * @return edit body containing the entity data
         */
        protected EditBody createEditBody(final RelatedContent entity) {
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 8.4K bytes
    - Viewed (0)
  7. tests/test_tutorial/test_body_multiple_params/test_tutorial004.py

    
    def test_openapi_schema(client: TestClient):
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
        assert response.json() == {
            "openapi": "3.1.0",
            "info": {"title": "FastAPI", "version": "0.1.0"},
            "paths": {
                "/items/{item_id}": {
                    "put": {
                        "responses": {
                            "200": {
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Fri Dec 26 10:43:02 UTC 2025
    - 9.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/witness/WitnessRpcMessage.java

        }
    
        @Override
        public void decode_out(NdrBuffer buf) throws NdrException {
            decodeWitnessParameters(buf);
            // The return code is always the last 4 bytes in MS-SWN responses
            returnCode = buf.dec_ndr_long();
        }
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Sun Aug 24 00:12:28 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  9. cmd/storage-rest-server.go

    	err := req.DecodeMsg(mr)
    	if err != nil {
    		rw.CloseWithError(err)
    		return
    	}
    
    	mw := msgp.NewWriter(rw)
    	responses := make(chan ReadMultipleResp, len(req.Files))
    	var wg sync.WaitGroup
    	wg.Add(1)
    	go func() {
    		defer wg.Done()
    		for resp := range responses {
    			err := resp.EncodeMsg(mw)
    			if err != nil {
    				rw.CloseWithError(err)
    				return
    			}
    			mw.Flush()
    		}
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue May 27 15:19:03 UTC 2025
    - 45.7K bytes
    - Viewed (0)
  10. docs/en/docs/tutorial/dependencies/dependencies-with-yield.md

        Note over client,operation: Response is already sent, can't change it anymore
        opt Tasks
            operation -->> tasks: Send background tasks
        end
        opt Raise other exception
            tasks -->> tasks: Handle exceptions in the background task code
        end
    ```
    
    /// info
    
    Only **one response** will be sent to the client. It might be one of the error responses or it will be the response from the *path operation*.
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 12.9K bytes
    - Viewed (0)
Back to top