Search Options

Results per page
Sort
Preferred Languages
Advance

Results 291 - 300 of 489 for ok (0.01 sec)

  1. docs/pt/docs/advanced/response-change-status-code.md

    Porém em alguns casos você precisa retornar um código de status diferente do padrão.
    
    ## Caso de uso
    
    Por exemplo, imagine que você deseja retornar um código de status HTTP de "OK" `200` por padrão.
    
    Mas se o dado não existir, você quer criá-lo e retornar um código de status HTTP de "CREATED" `201`.
    
    Mas você ainda quer ser capaz de filtrar e converter o dado que você retornará com um `response_model`.
    
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  2. cmd/erasure-healing_test.go

    	if err != nil {
    		if _, ok := err.(ObjectNotFound); !ok {
    			t.Errorf("Expect %v but received %v", ObjectNotFound{Bucket: bucket, Object: object}, err)
    		}
    	}
    
    	// since majority of xl.meta's are not available, object should be successfully deleted.
    	_, err = objLayer.GetObjectInfo(ctx, bucket, object, ObjectOptions{})
    	if _, ok := err.(ObjectNotFound); !ok {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 48.5K bytes
    - Viewed (0)
  3. cmd/metacache.go

    		return
    	}
    	objAPI := newObjectLayerFn()
    	if objAPI == nil {
    		internalLogIf(ctx, errors.New("metacache.delete: no object layer"))
    		return
    	}
    	ez, ok := objAPI.(deleteAllStorager)
    	if !ok {
    		bugLogIf(ctx, errors.New("metacache.delete: expected objAPI to be 'deleteAllStorager'"))
    		return
    	}
    	ez.deleteAll(ctx, minioMetaBucket, metacachePrefixForID(m.bucket, m.id))
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Jul 12 16:23:16 UTC 2024
    - 6K bytes
    - Viewed (0)
  4. docs/en/docs/tutorial/response-status-code.md

    * **`200 - 299`** are for "Successful" responses. These are the ones you would use the most.
        * `200` is the default status code, which means everything was "OK".
        * Another example would be `201`, "Created". It is commonly used after creating a new record in the database.
    Registered: Sun Sep 07 07:19:17 UTC 2025
    - Last Modified: Sun Aug 31 09:15:41 UTC 2025
    - 4K bytes
    - Viewed (0)
  5. mockwebserver/src/main/kotlin/mockwebserver3/MockResponse.kt

    import okhttp3.internal.http2.Settings
    import okio.Buffer
    
    /** A scripted response to be replayed by the mock web server. */
    public class MockResponse {
      /** Returns the HTTP response line, such as "HTTP/1.1 200 OK". */
      public val status: String
    
      public val code: Int
        get() {
          val statusParts = status.split(' ', limit = 3)
          require(statusParts.size >= 2) { "Unexpected status: $status" }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Jun 20 11:46:46 UTC 2025
    - 17.8K bytes
    - Viewed (0)
  6. cmd/batch-rotate.go

    						return true
    					}
    				}
    			}
    
    			// None of the provided metadata filters match skip the object.
    			return false
    		}
    		if r.Flags.Filter.KMSKeyID != "" {
    			if v, ok := info.Metadata[xhttp.AmzServerSideEncryptionKmsID]; ok && strings.TrimPrefix(v, crypto.ARNPrefix) != r.Flags.Filter.KMSKeyID {
    				return false
    			}
    		}
    		return true
    	}
    
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 14.7K bytes
    - Viewed (0)
  7. okhttp/src/jvmTest/kotlin/okhttp3/ResponseJvmTest.kt

          .Builder()
          .request(
            Request
              .Builder()
              .url("https://example.com/")
              .build(),
          ).protocol(Protocol.HTTP_1_1)
          .code(code)
          .message("OK")
          .body(responseBody)
          .apply { fn() }
          .build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Jul 07 18:57:05 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  8. docs/features/connections.md

    In OkHttp some fields of the address come from the URL (scheme, hostname, port) and the rest come from the [OkHttpClient](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-ok-http-client/).
    
    ### [Routes](https://square.github.io/okhttp/4.x/okhttp/okhttp3/-route/)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Feb 21 03:33:59 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  9. okhttp/src/jvmTest/kotlin/okhttp3/PublicInternalApiTest.kt

      }
    
      @Test
      fun hasBody() {
        val request = Request.Builder().url("http://example.com").build()
        val response =
          Response
            .Builder()
            .code(200)
            .message("OK")
            .request(request)
            .protocol(Protocol.HTTP_2)
            .build()
        assertTrue(hasBody(response))
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 1.5K bytes
    - Viewed (0)
  10. android-test/src/androidTest/README.md

    ...
    > Task :android-test:connectedDebugAndroidTest
    ...
    11:55:40 V/InstrumentationResultParser: Time: 13.271
    11:55:40 V/InstrumentationResultParser:
    11:55:40 V/InstrumentationResultParser: OK (12 tests)
    ...
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Fri Aug 22 08:12:58 UTC 2025
    - 2.5K bytes
    - Viewed (0)
Back to top