Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1011 - 1020 of 1,881 for RESPONSE (0.15 seconds)

  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/app/web/error/ErrorBadrequrestAction.java

     */
    package org.codelibs.fess.app.web.error;
    
    import org.codelibs.fess.app.web.base.FessSearchAction;
    import org.lastaflute.web.Execute;
    import org.lastaflute.web.response.HtmlResponse;
    
    /**
     * Action class for handling HTTP 400 Bad Request error pages.
     * This action displays error pages when a client request contains
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  10. okhttp/src/jvmTest/kotlin/okhttp3/InsecureForHostTest.kt

        val response = call.execute()
        assertThat(response.code).isEqualTo(200)
        assertThat(response.handshake!!.cipherSuite).isNotNull()
        assertThat(response.handshake!!.tlsVersion).isNotNull()
        assertThat(response.handshake!!.localCertificates).isEmpty()
        assertThat(response.handshake!!.localPrincipal).isNull()
        assertThat(response.handshake!!.peerCertificates).isEmpty()
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Wed Jun 18 12:28:21 GMT 2025
    - 4.2K bytes
    - Click Count (0)
Back to Top