- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 3,420 for expect (0.15 sec)
-
docs/en/docs/tutorial/request-forms.md
!!! warning You can declare multiple `Form` parameters in a *path operation*, but you can't also declare `Body` fields that you expect to receive as JSON, as the request will have the body encoded using `application/x-www-form-urlencoded` instead of `application/json`. This is not a limitation of **FastAPI**, it's part of the HTTP protocol. ## Recap
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 3.2K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* It exposes an actual Python <a href="https://docs.python.org/3/library/tempfile.html#tempfile.SpooledTemporaryFile" class="external-link" target="_blank">`SpooledTemporaryFile`</a> object that you can pass directly to other libraries that expect a file-like object. ### `UploadFile` `UploadFile` has the following attributes: * `filename`: A `str` with the original file name that was uploaded (e.g. `myimage.jpg`).
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 10.2K bytes - Viewed (0) -
build-logic/documentation/src/test/groovy/gradlebuild/docs/model/SimpleClassMetaDataRepositoryTest.groovy
when: repository.put('class', value) then: repository.find('class') == value repository.get('class') == value } def findReturnsNullForUnknownClass() { expect: repository.find('unknown') == null } def getFailsForUnknownClass() { given: repository.put('unkown', new TestDomainObject('unknown')) when:
Groovy - Registered: Wed Apr 17 11:36:08 GMT 2024 - Last Modified: Sat Apr 06 02:21:33 GMT 2024 - 3.8K bytes - Viewed (0) -
cmd/erasure-healing_test.go
Recursive: false, Immediate: false, }) } // Try healing now, expect to receive errFileNotFound. _, err = objLayer.HealObject(ctx, bucket, object, "", madmin.HealOpts{DryRun: false, Remove: true, ScanMode: madmin.HealDeepScan}) if err != nil { if _, ok := err.(ObjectNotFound); !ok { t.Errorf("Expect %v but received %v", ObjectNotFound{Bucket: bucket, Object: object}, err) } }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Wed Mar 27 15:10:40 GMT 2024 - 47.6K bytes - Viewed (0) -
docs/en/docs/tutorial/request-forms-and-files.md
And you can declare some of the files as `bytes` and some as `UploadFile`. !!! warning You can declare multiple `File` and `Form` parameters in a *path operation*, but you can't also declare `Body` fields that you expect to receive as JSON, as the request will have the body encoded using `multipart/form-data` instead of `application/json`. This is not a limitation of **FastAPI**, it's part of the HTTP protocol. ## Recap
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Wed Mar 13 19:02:19 GMT 2024 - 2K bytes - Viewed (0) -
guava-tests/test/com/google/common/math/LongMathTest.java
fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } } public void testFloorPowerOfTwoNegative() { for (long x : NEGATIVE_LONG_CANDIDATES) { try { LongMath.floorPowerOfTwo(x); fail("Expected IllegalArgumentException"); } catch (IllegalArgumentException expected) { } } }
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Mon Mar 04 20:15:57 GMT 2024 - 32.5K bytes - Viewed (0) -
internal/etag/etag.go
// http.Header.Set(...). Otherwise, some S3 clients will not // able to extract the ETag. func Set(etag ETag, h http.Header) { // Some (broken) S3 clients expect the ETag header to // literally "ETag" - not "Etag". Further, some clients // expect an ETag in double quotes. Therefore, we set the // ETag directly as map entry instead of using http.Header.Set h["ETag"] = []string{`"` + etag.String() + `"`} }
Go - Registered: Sun May 05 19:28:20 GMT 2024 - Last Modified: Sun Mar 10 21:09:36 GMT 2024 - 13.3K bytes - Viewed (0) -
docs/en/docs/advanced/openapi-callbacks.md
In this case, you could want to document how that external API *should* look like. What *path operation* it should have, what body it should expect, what response it should return, etc. ## An app with callbacks Let's see all this with an example. Imagine you develop an app that allows creating invoices.
Plain Text - Registered: Sun May 05 07:19:11 GMT 2024 - Last Modified: Thu May 02 22:37:31 GMT 2024 - 7.7K bytes - Viewed (0) -
cni/pkg/nodeagent/pod_cache_test.go
if netns1 != netnsTaken { t.Fatalf("Expected the original Netns for the same uid, got %p and %p", netns1, ns) } if nil != p.Take(string(pod.UID)) { // expect nil because we already took it t.Fatalf("Expected nil Netns for the same uid twice") } } var counter atomic.Int64 func inc() uintptr { return uintptr(counter.Add(1))
Go - Registered: Wed May 08 22:53:08 GMT 2024 - Last Modified: Fri Apr 12 21:47:31 GMT 2024 - 4.2K bytes - Viewed (0) -
src/test/java/org/codelibs/core/beans/util/BeanUtilTest.java
@Test public void testCopyMapToBean_SrcNull() { exception.expect(NullArgumentException.class); exception.expectMessage(is("[ECL0008]argument[src] is null.")); BeanUtil.copyMapToBean(null, new Object()); } /** * */ @Test public void testCopyBeanToMap_DestNull() { exception.expect(NullArgumentException.class);
Java - Registered: Fri May 03 20:58:11 GMT 2024 - Last Modified: Thu Mar 07 01:59:08 GMT 2024 - 34.5K bytes - Viewed (0)