- Sort Score
- Num 10 results
- Language All
Results 401 - 410 of 1,967 for respond (0.17 seconds)
-
src/main/java/org/codelibs/fess/filter/RateLimitFilter.java
} chain.doFilter(request, response); } /** * Send a 403 Forbidden response for blocked IPs. * @param response the HTTP response * @throws IOException if an I/O error occurs */ protected void sendBlockedResponse(final HttpServletResponse response) throws IOException { response.setStatus(HttpServletResponse.SC_FORBIDDEN); response.setContentType("application/json;charset=UTF-8");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Dec 24 14:16:27 GMT 2025 - 4.4K bytes - Click Count (0) -
tests/test_request_params/test_header/test_required_str.py
"/required-alias", "/model-required-alias", ], ) def test_required_alias_by_alias(path: str): client = TestClient(app) response = client.get(path, headers={"p_alias": "hello"}) assert response.status_code == 200, response.text assert response.json() == {"p": "hello"} # ===================================================================================== # Validation aliasCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 10.3K bytes - Click Count (0) -
tests/test_custom_route_class.py
assert getattr(routes["/a/b/"], "x_type") == "B" # noqa: B009 assert getattr(routes["/a/b/c/"], "x_type") == "C" # noqa: B009 def test_openapi_schema(): response = client.get("/openapi.json") assert response.status_code == 200, response.text assert response.json() == snapshot( { "openapi": "3.1.0", "info": {"title": "FastAPI", "version": "0.1.0"}, "paths": {
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 3.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/index/SuggestIndexerErrorHandlingTest.java
SuggestItem[] items = new SuggestItem[0]; SuggestIndexResponse response = suggester.indexer().index(items); assertNotNull(response); assertEquals(0, response.getNumberOfInputDocs()); assertEquals(0, response.getNumberOfSuggestDocs()); assertFalse(response.hasError()); } @Test public void test_indexFromEmptyQueryLogs() throws Exception {
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) -
src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java
setStatus(response, NtStatus.NT_STATUS_NOTIFY_ENUM_DIR); assertFalse(response.isErrorResponseStatus()); // Test with success status setStatus(response, NtStatus.NT_STATUS_SUCCESS); assertFalse(response.isErrorResponseStatus()); // Test with error status setStatus(response, NtStatus.NT_STATUS_ACCESS_DENIED);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 18.8K bytes - Click Count (0) -
tests/test_security_api_key_header_description.py
client = TestClient(app) def test_security_api_key(): response = client.get("/users/me", headers={"key": "secret"}) assert response.status_code == 200, response.text assert response.json() == {"username": "secret"} def test_security_api_key_no_key(): response = client.get("/users/me") assert response.status_code == 401, response.text assert response.json() == {"detail": "Not authenticated"}
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 2.2K bytes - Click Count (0) -
tests/test_request_params/test_file/test_optional_list.py
client = TestClient(app) response = client.post(path) assert response.status_code == 200, response.text assert response.json() == {"file_size": None} @pytest.mark.parametrize( "path", [ "/optional-list-bytes", "/optional-list-uploadfile", ], ) def test_optional_list(path: str): client = TestClient(app)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Feb 21 13:01:31 GMT 2026 - 10.8K bytes - Click Count (0) -
tests/test_tutorial/test_body_nested_models/test_tutorial001_tutorial002_tutorial003.py
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 8.5K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbSessionImpl.java
// response if (negoResp.getSelectedDialect().atLeast(DialectVersion.SMB300) || response.isSigned()) { response.setDigest(dgst); byte[] payload = response.getRawPayload(); if (!response.verifySignature(payload, 0, payload.length)) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 68.9K bytes - Click Count (0) -
fastapi/responses.py
"""JSON response using the ujson library to serialize data to JSON. **Deprecated**: `UJSONResponse` is deprecated. FastAPI now serializes data directly to JSON bytes via Pydantic when a return type or response model is set, which is faster and doesn't need a custom response class. Read more in the [FastAPI docs for Custom Response](https://fastapi.tiangolo.com/advanced/custom-response/#orjson-or-response-model) and theCreated: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Mar 01 09:21:52 GMT 2026 - 3.6K bytes - Click Count (0)