Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 801 - 810 of 1,501 for RESPONSE (0.06 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_datastructures.py

            testing_file_store.append(file)
            return {"filename": file.filename}
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/uploadfile/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"filename": "test.txt"}
    
        assert testing_file_store
        assert testing_file_store[0].file.closed
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Dec 20 15:55:38 GMT 2025
    - 1.8K bytes
    - Click Count (0)
  2. okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ExternalHttp2Example.kt

              .build(),
          )
        val response = call.execute()
        try {
          println(response.code)
          println("PROTOCOL ${response.protocol}")
          var line: String?
          while (response.body
              .source()
              .readUtf8Line()
              .also { line = it } != null
          ) {
            println(line)
          }
        } finally {
          response.body.close()
        }
        client.connectionPool.evictAll()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Mar 19 19:25:20 GMT 2025
    - 1.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/smb1/SmbFileInputStream.java

            /*
             * Read AndX Request / Response
             */
    
            if (LogStream.level >= 4) {
                SmbFile.log.println("read: fid=" + file.fid + ",off=" + off + ",len=" + len);
            }
    
            final SmbComReadAndXResponse response = new SmbComReadAndXResponse(b, off);
    
            if (file.type == SmbFile.TYPE_NAMED_PIPE) {
                response.responseTimeout = 0;
            }
    
            int r, n;
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/DependenciesGraphTask.java

                    postRequest.setEntity(new StringEntity(output.toString()));
                    CloseableHttpResponse response = client.execute(postRequest);
                    getLogger().info("API call response status: " + response.getStatusLine().getStatusCode());
                    getLogger().debug(EntityUtils.toString(response.getEntity()));
                } catch (Exception e) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.3K bytes
    - Click Count (0)
  5. tests/test_stringified_annotation_dependency_py314.py

        client = TestClient(app)
    
        @app.get("/")
        async def get(
            current_user: Annotated[DummyUser | None, Depends(get_current_user)],
        ) -> str:
            return "hello world"
    
        response = client.get("/")
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Wed Feb 04 13:49:44 GMT 2026
    - 711 bytes
    - Click Count (0)
  6. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/Hc4HttpClient.java

                // get a content
                final HttpResponse response = executeHttpClient(httpGet);
                httpEntity = response.getEntity();
    
                final int httpStatusCode = response.getStatusLine().getStatusCode();
                if (httpStatusCode == 200) {
    
                    // check file size
                    final Header contentLengthHeader = response.getFirstHeader("Content-Length");
    Created: Sun Apr 12 03:50:13 GMT 2026
    - Last Modified: Fri Jan 09 23:46:52 GMT 2026
    - 54.4K bytes
    - Click Count (0)
  7. docs/zh-hant/docs/advanced/additional-status-codes.md

    如果你想在主要狀態碼之外再回傳其他狀態碼,可以直接回傳一個 `Response`(例如 `JSONResponse`),並直接設定你想要的額外狀態碼。
    
    例如,你想要有一個允許更新項目的路徑操作,成功時回傳 HTTP 狀態碼 200 "OK"。
    
    但你也希望它能接受新項目;當項目先前不存在時就建立它們,並回傳 HTTP 狀態碼 201 "Created"。
    
    要達成這點,匯入 `JSONResponse`,直接在那裡回傳內容,並設定你想要的 `status_code`:
    
    {* ../../docs_src/additional_status_codes/tutorial001_an_py310.py hl[4,25] *}
    
    /// warning
    
    當你直接回傳一個 `Response`(就像上面的範例),它會原封不動地被送出。
    
    不會再經過模型序列化等處理。
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Fri Mar 20 17:05:38 GMT 2026
    - 1.8K bytes
    - Click Count (0)
  8. src/test/java/org/codelibs/fess/filter/CorsFilterTest.java

            @Override
            public void process(String origin, ServletRequest request, ServletResponse response) {
                processCalled = true;
                lastOrigin = origin;
                lastRequest = request;
                lastResponse = response;
            }
    
            public boolean wasProcessCalled() {
                return processCalled;
            }
    
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 06:04:58 GMT 2026
    - 22.6K bytes
    - Click Count (0)
  9. src/main/java/org/codelibs/fess/timer/HotThreadMonitorTarget.java

                        .setType(type)
                        .execute()
                        .actionGet(timeout);
                append(buf, "cluster_name", () -> response.getClusterName().value()).append(',');
                final String hotThreads = response.getNodesMap().entrySet().stream().map(e -> {
                    final StringBuilder tempBuf = new StringBuilder();
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Aug 07 03:06:29 GMT 2025
    - 3.7K bytes
    - Click Count (0)
  10. src/main/java/jcifs/dcerpc/DcerpcMessage.java

            if (this.ptype == 2 || this.ptype == 3) { /* Response or Fault */
                this.alloc_hint = buf.dec_ndr_long();
                buf.dec_ndr_short(); /* context id */
                buf.dec_ndr_short(); /* cancel count */
            }
            if (this.ptype == 3 || this.ptype == 13) { /* Fault */
                this.result = buf.dec_ndr_long();
            } else { /* Bind_ack or Response */
                decode_out(buf);
            }
        }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 6.3K bytes
    - Click Count (0)
Back to Top