- Sort Score
- Result 10 results
- Languages All
Results 951 - 960 of 1,496 for RESPONSE (0.18 sec)
-
docs/en/docs/tutorial/header-param-models.md
{!> ../../docs_src/header_param_models/tutorial002.py!} ``` //// If a client tries to send some **extra headers**, they will receive an **error** response. For example, if the client tries to send a `tool` header with a value of `plumbus`, they will receive an **error** response telling them that the header parameter `tool` is not allowed: ```json { "detail": [ { "type": "extra_forbidden",
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 06 20:36:54 UTC 2024 - 3.5K bytes - Viewed (0) -
internal/rest/client.go
if xnet.IsNetworkOrHostDown(err, r.expectTimeouts) { r.errorStatusOnce.Do(func() { atomic.AddUint64(&globalStats.errs, 1) }) } } // dumpHTTP - dump HTTP request and response. func (c *Client) dumpHTTP(req *http.Request, resp *http.Response) { // Starts http dump. _, err := fmt.Fprintln(c.TraceOutput, "---------START-HTTP---------") if err != nil { return }
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Fri Jul 26 12:55:01 UTC 2024 - 14.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/dict/DictionaryManager.java
public DictionaryFile<? extends DictionaryItem>[] getDictionaryFiles() { try (CurlResponse response = ComponentUtil.getCurlHelper().get("/_configsync/file").param("fields", "path,@timestamp") .param("size", ComponentUtil.getFessConfig().getPageDictionaryMaxFetchSize()).execute()) { final Map<String, Object> contentMap = response.getContent(OpenSearchCurl.jsonParser()); @SuppressWarnings("unchecked")
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:53:18 UTC 2024 - 5K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/it/admin/LogTests.java
} @Override protected void testRead() { final Map<String, Object> searchBody = new HashMap<>(); final String response = checkMethodBase(searchBody).get(API_PATH + "/" + LIST_ENDPOINT_SUFFIX).asString(); assertEquals(new Integer(0), JsonPath.from(response).get("response.status")); } @Override protected void tearDown() { // do nothing } @Test void crudTest() {
Registered: Thu Oct 31 13:40:30 UTC 2024 - Last Modified: Thu Feb 22 01:37:57 UTC 2024 - 2.5K bytes - Viewed (0) -
samples/compare/src/test/kotlin/okhttp3/compare/ApacheHttpClientTest.kt
.build(), ) val request = HttpGet(server.url("/").toUri()) request.addHeader("Accept", "text/plain") httpClient.execute(request).use { response -> assertThat(response.code).isEqualTo(200) assertThat(EntityUtils.toString(response.entity)).isEqualTo("hello, Apache HttpClient 5.x") } val recorded = server.takeRequest() assertThat(recorded.headers["Accept"]).isEqualTo("text/plain")
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 2.1K bytes - Viewed (0) -
tests/test_tutorial/test_custom_response/test_tutorial009.py
file_path: Path = tmp_path / "large-video-file.mp4" tutorial009.some_file_path = str(file_path) test_content = b"Fake video bytes" file_path.write_bytes(test_content) response = client.get("/")
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sat Jul 03 19:51:28 UTC 2021 - 487 bytes - Viewed (0) -
docs/en/docs/advanced/additional-status-codes.md
It will use the default status code or the one you set in your *path operation*. ## Additional status codes If you want to return additional status codes apart from the main one, you can do that by returning a `Response` directly, like a `JSONResponse`, and set the additional status code directly. For example, let's say that you want to have a *path operation* that allows to update items, and returns HTTP status codes of 200 "OK" when successful.
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Oct 27 16:12:23 UTC 2024 - 1.9K bytes - Viewed (0) -
docs/tls/README.md
`certgen` is a simple *Go* tool to generate self-signed certificates, and provides SAN certificates with DNS and IP entries: ```sh ./certgen -host "10.10.0.3,10.10.0.4,10.10.0.5" ``` A response similar to this one should be displayed: ``` 2018/11/21 10:16:18 wrote public.crt 2018/11/21 10:16:18 wrote private.key ``` ### 3.2 Use OpenSSL to Generate a Certificate
Registered: Sun Nov 03 19:28:11 UTC 2024 - Last Modified: Thu Sep 29 04:28:45 UTC 2022 - 8.4K bytes - Viewed (0) -
tests/test_callable_endpoint.py
endpoint = partial(main, "foo") app = FastAPI() app.get("/")(endpoint) client = TestClient(app) def test_partial(): response = client.get("/?q=bar") data = response.json()
Registered: Sun Nov 03 07:19:11 UTC 2024 - Last Modified: Sun Jun 28 18:13:30 UTC 2020 - 457 bytes - Viewed (0) -
docs/changelogs/changelog_1x.md
* Fix: Route selection shouldn't use TLS modes that we know will fail. * Fix: Cache SPDY responses even if the response body is closed prematurely. * Fix: Use strict timeouts when aborting a download. * Fix: Support Shoutcast HTTP responses like `ICY 200 OK`. * Fix: Don't unzip if there isn't a response body. * Fix: Don't leak gzip streams on redirects. * Fix: Don't do DNS lookups on invalid hosts.
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sun Feb 06 02:19:09 UTC 2022 - 6.4K bytes - Viewed (0)