Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 883 for Beavers (0.2 sec)

  1. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun -deprecated_headers ()Lokhttp3/Headers;
    	public final fun -deprecated_method ()Ljava/lang/String;
    	public final fun -deprecated_path ()Ljava/lang/String;
    	public final fun -deprecated_response ()Lokhttp3/mockwebserver/MockResponse;
    	public fun <init> (Ljava/lang/String;Ljava/lang/String;Lokhttp3/Headers;Lokhttp3/mockwebserver/MockResponse;)V
    	public final fun headers ()Lokhttp3/Headers;
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jul 22 12:28:51 GMT 2023
    - 10.2K bytes
    - Viewed (0)
  2. internal/bucket/encryption/bucket-sse-config.go

    }
    
    // Apply applies the SSE bucket configuration on the given HTTP headers and
    // sets the specified SSE headers.
    //
    // Apply does not overwrite any existing SSE headers. Further, it will
    // set minimal SSE-KMS headers if autoEncrypt is true and the BucketSSEConfig
    // is nil.
    func (b *BucketSSEConfig) Apply(headers http.Header, opts ApplyOptions) {
    	if crypto.Requested(headers) {
    		return
    	}
    	if b == nil {
    		if opts.AutoEncrypt {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Tue Oct 25 00:44:15 GMT 2022
    - 4.9K bytes
    - Viewed (0)
  3. docs/sts/client_grants/__init__.py

            method = self.METHOD
    
            def fetch_credentials():
                # HTTP headers are case insensitive filter out
                # all duplicate headers and pick one.
                headers = {}
                headers['content-type'] = 'application/x-www-form-urlencoded'
                headers['authorization'] = urllib3.make_headers(
                    basic_auth='%s:%s' % (self.cid, self.csec))['authorization']
    
    Python
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 23 18:58:53 GMT 2021
    - 4.6K bytes
    - Viewed (1)
  4. docs_src/app_testing/app_b/test_main.py

    
    def test_read_item():
        response = client.get("/items/foo", headers={"X-Token": "coneofsilence"})
        assert response.status_code == 200
        assert response.json() == {
            "id": "foo",
            "title": "Foo",
            "description": "There goes my hero",
        }
    
    
    def test_read_item_bad_token():
        response = client.get("/items/foo", headers={"X-Token": "hailhydra"})
        assert response.status_code == 400
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_security/test_tutorial005_py39.py

        assert response.json() == {"detail": "Not authenticated"}
        assert response.headers["WWW-Authenticate"] == "Bearer"
    
    
    @needs_py39
    def test_token(client: TestClient):
        access_token = get_access_token(scope="me", client=client)
        response = client.get(
            "/users/me", headers={"Authorization": f"Bearer {access_token}"}
        )
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Wed Mar 13 19:07:10 GMT 2024
    - 16.3K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/HeadersChallengesTest.kt

      @Test fun basicChallenge() {
        val headers =
          Headers.Builder()
            .add("WWW-Authenticate: Basic realm=\"protected area\"")
            .build()
        assertThat(headers.parseChallenges("WWW-Authenticate"))
          .isEqualTo(listOf(Challenge("Basic", mapOf("realm" to "protected area"))))
      }
    
      @Test fun basicChallengeWithCharset() {
        val headers =
          Headers.Builder()
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 16.6K bytes
    - Viewed (0)
  7. okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/Case.kt

    import okhttp3.internal.http2.Header
    import okio.ByteString
    
    /**
     * Representation of an individual case (set of headers and wire format). There are many cases for a
     * single story.  This class is used reflectively with Moshi to parse stories.
     */
    data class Case(
      val seqno: Int = 0,
      val wire: ByteString? = null,
      val headers: List<Map<String, String>>,
    ) : Cloneable {
      val headersList: List<Header>
        get() {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Dec 23 10:26:25 GMT 2023
    - 1.3K bytes
    - Viewed (0)
  8. tests/test_tutorial/test_security/test_tutorial006_an.py

        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
    
    
    def test_security_http_basic_invalid_credentials():
        response = client.get(
            "/users/me", headers={"Authorization": "Basic notabase64token"}
        )
        assert response.status_code == 401, response.text
        assert response.headers["WWW-Authenticate"] == "Basic"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Fri Jun 30 18:25:16 GMT 2023
    - 2.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/RecordedResponse.kt

        }
    
      fun assertHeader(
        name: String,
        vararg values: String?,
      ) = apply {
        assertThat(response!!.headers(name)).containsExactly(*values)
      }
    
      fun assertHeaders(headers: Headers) =
        apply {
          assertThat(response!!.headers).isEqualTo(headers)
        }
    
      fun assertBody(expectedBody: String) =
        apply {
          assertThat(body).isEqualTo(expectedBody)
        }
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 5.3K bytes
    - Viewed (0)
  10. docs_src/response_headers/tutorial002.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.get("/headers-and-object/")
    def get_headers(response: Response):
        response.headers["X-Cat-Dog"] = "alone in the world"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 222 bytes
    - Viewed (0)
Back to top