Search Options

Results per page
Sort
Preferred Languages
Advance

Results 641 - 650 of 1,560 for respond (0.11 sec)

  1. src/main/webapp/WEB-INF/orig/view/error/redirect.jsp

    		redirectPage.append("/error/systemerror/");
    		response.sendRedirect(redirectPage.toString());
    	} else {
    		response.sendError(statusCode);
    	}
    } else if("logOut".equals(type)) {
    	redirectPage.append("/login/?type=logout&code=" + statusCode);
    	response.sendRedirect(redirectPage.toString());
    } else if("badRequest".equals(type)) {
    	redirectPage.append("/error/badrequest/");
    	response.sendRedirect(redirectPage.toString());
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Dec 23 06:18:48 UTC 2023
    - 1.2K bytes
    - Viewed (0)
  2. okhttp/src/test/java/okhttp3/SocketChannelTest.kt

            }
          },
        )
    
        val response = promise.get(4, SECONDS)
    
        assertThat(response).isNotNull()
    
        assertThat(response.body.string()).isNotEmpty()
    
        if (socketMode is TlsInstance) {
          assertThat(response.handshake!!.tlsVersion).isEqualTo(socketMode.tlsVersion)
    
          assertThat(acceptedHostName).isEqualTo(hostname)
    
          if (socketMode.tlsExtensionMode == STANDARD) {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. tests/test_http_connection_injection.py

        await websocket.accept()
        await websocket.send_json(value)
        await websocket.close()
    
    
    client = TestClient(app)
    
    
    def test_value_extracting_by_http():
        response = client.get("/http")
        assert response.status_code == 200
        assert response.json() == 42
    
    
    def test_value_extracting_by_ws():
        with client.websocket_connect("/ws") as websocket:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Aug 09 13:56:41 UTC 2020
    - 972 bytes
    - Viewed (0)
  4. tests/test_compat.py

    def test_complex():
        app = FastAPI()
    
        @app.post("/")
        def foo(foo: Union[str, List[int]]):
            return foo
    
        client = TestClient(app)
    
        response = client.post("/", json="bar")
        assert response.status_code == 200, response.text
        assert response.json() == "bar"
    
        response2 = client.post("/", json=[1, 2])
        assert response2.status_code == 200, response2.text
        assert response2.json() == [1, 2]
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Wed Sep 11 07:45:30 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/internal/Request.java

     * @author mbechler
     * @param <T>
     *            response type
     *
     */
    public interface Request <T extends CommonServerMessageBlockResponse> extends CommonServerMessageBlockRequest {
    
        /**
         * 
         * @param tc
         * @return the initialized response
         * @internal
         */
        public T initResponse ( CIFSContext tc );
    
    
        /**
         * 
         * @return the response message
         */
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 1.3K bytes
    - Viewed (0)
  6. docs/sts/custom-token-identity.md

    ## API Response
    
    XML response for this API is similar to [AWS STS AssumeRoleWithWebIdentity](https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRoleWithWebIdentity.html#API_AssumeRoleWithWebIdentity_ResponseElements)
    
    ## Example request and response
    
    Sample request with `curl`:
    
    ```sh
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 27 00:58:09 UTC 2022
    - 3K bytes
    - Viewed (0)
  7. tests/test_path.py

    
    def test_text_get():
        response = client.get("/text")
        assert response.status_code == 200, response.text
        assert response.json() == "Hello World"
    
    
    def test_nonexistent():
        response = client.get("/nonexistent")
        assert response.status_code == 404, response.text
        assert response.json() == {"detail": "Not Found"}
    
    
    def test_path_foobar():
        response = client.get("/path/foobar")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:40:57 UTC 2024
    - 34.4K bytes
    - Viewed (0)
  8. tests/test_response_model_as_return_annotation.py

        response = client.get("/response_model-no_annotation-return_same_model")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "John", "surname": "Doe"}
    
    
    def test_response_model_no_annotation_return_exact_dict():
        response = client.get("/response_model-no_annotation-return_exact_dict")
        assert response.status_code == 200, response.text
        assert response.json() == {"name": "John", "surname": "Doe"}
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Mon Aug 14 09:49:57 UTC 2023
    - 47.7K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/CacheCorruptionTest.kt

        assertThat(response.handshake!!.cipherSuite.javaName).startsWith("SLT_")
      }
    
      @Test
      fun truncatedMetadataEntry() {
        val response =
          testCorruptingCache {
            corruptMetadata {
              // truncate metadata to 1/4 of length
              it.substring(0, it.length / 4)
            }
          }
    
        assertThat(response.body.string()).isEqualTo("ABC.2") // not cached
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 6K bytes
    - Viewed (0)
  10. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

      override fun satisfactionFailure(
        call: Call,
        response: Response,
      ) = logEvent(SatisfactionFailure(System.nanoTime(), call))
    
      override fun cacheMiss(call: Call) = logEvent(CacheMiss(System.nanoTime(), call))
    
      override fun cacheHit(
        call: Call,
        response: Response,
      ) = logEvent(CacheHit(System.nanoTime(), call))
    
      override fun cacheConditionalHit(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top