Search Options

Results per page
Sort
Preferred Languages
Advance

Results 811 - 820 of 1,367 for respond (0.05 sec)

  1. 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 Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Jun 18 12:28:21 UTC 2025
    - 2.1K bytes
    - Viewed (0)
  2. docs/ru/docs/advanced/additional-status-codes.md

    ## Дополнительные статус коды
    
    Если вы хотите возвращать дополнительный статус код помимо основного, вы можете сделать это, возвращая объект `Response` напрямую, как `JSONResponse`, и устанавливая нужный статус код напрямую.
    
    Например, скажем, вы хотите создать *операцию пути*, которая позволяет обновлять элементы и возвращает HTTP-код 200 "OK" при успешном выполнении.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Fri Jul 04 05:17:17 UTC 2025
    - 3.3K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/dict/DictionaryManager.java

            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());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 7.7K bytes
    - Viewed (0)
  4. android-test/src/test/kotlin/okhttp/android/test/ShadowDnsResolver.kt

    import org.robolectric.annotation.Implementation
    import org.robolectric.annotation.Implements
    import org.robolectric.shadow.api.Shadow
    
    @Implements(DnsResolver::class)
    class ShadowDnsResolver {
      var responder: (Request) -> Unit = {
        it.callback.onAnswer(listOf(), 0)
      }
    
      data class Request(
        val network: Network?,
        val domain: String,
        val nsType: Int,
        val flags: Int,
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Dec 30 23:28:56 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. src/main/java/jcifs/smb1/ntlmssp/NtlmFlags.java

        * of NTLMv2 authentication.
        */
        int NTLMSSP_NEGOTIATE_NTLM2 = 0x00080000;
    
        /**
         * Requests an initial response token.
         */
        int NTLMSSP_REQUEST_INIT_RESPONSE = 0x00100000;
    
        /**
         * Requests an accept response token.
         */
        int NTLMSSP_REQUEST_ACCEPT_RESPONSE = 0x00200000;
    
        /**
         * Requests the use of a non-NT session key.
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/session/Smb2SessionSetupRequestTest.java

        }
    
        @Test
        @DisplayName("Should create proper response object")
        void testCreateResponse() {
            // When
            Smb2SessionSetupResponse response = request.createResponse(mockContext, request);
    
            // Then
            assertNotNull(response);
            assertTrue(response instanceof Smb2SessionSetupResponse);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 21.2K bytes
    - Viewed (0)
  7. src/main/java/jcifs/netbios/SessionServicePacket.java

        static final int SESSION_MESSAGE = 0x00;
        static final int SESSION_REQUEST = 0x81;
    
        /**
         * NetBIOS positive session response packet type.
         */
        public static final int POSITIVE_SESSION_RESPONSE = 0x82;
    
        /**
         * NetBIOS negative session response packet type.
         */
        public static final int NEGATIVE_SESSION_RESPONSE = 0x83;
        static final int SESSION_RETARGET_RESPONSE = 0x84;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/internal/smb1/trans2/Trans2QueryFSInformationResponse.java

    import jcifs.internal.smb1.trans.SmbComTransaction;
    import jcifs.internal.smb1.trans.SmbComTransactionResponse;
    
    /**
     * Trans2 QueryFSInformation response message for file system information queries.
     * This class handles the response from a TRANS2_QUERY_FS_INFORMATION request,
     * returning various file system information levels such as volume size and attributes.
     */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 5K bytes
    - Viewed (0)
  9. cmd/admin-handlers.go

    		response.DecryptionErr = "The generated and the decrypted data key do not match"
    		resp, err := json.Marshal(response)
    		if err != nil {
    			writeCustomErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrInternalError), err.Error(), r.URL)
    			return
    		}
    		writeSuccessResponseJSON(w, resp)
    		return
    	}
    
    	resp, err := json.Marshal(response)
    	if err != nil {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 99.6K bytes
    - Viewed (0)
  10. fess-crawler/src/main/java/org/codelibs/fess/net/protocol/storage/Handler.java

                }
            }
    
            /**
             * Gets the object statistics from the storage service.
             * This method caches the response to avoid repeated calls.
             *
             * @return The object statistics response
             * @throws InvalidKeyException If the access key is invalid
             * @throws ErrorResponseException If the server returns an error
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sun Jul 06 02:13:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
Back to top