Search Options

Results per page
Sort
Preferred Languages
Advance

Results 2161 - 2170 of 7,014 for _return (0.05 sec)

  1. docs_src/request_files/tutorial003_an.py

        files: Annotated[List[bytes], File(description="Multiple files as bytes")],
    ):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(
        files: Annotated[
            List[UploadFile], File(description="Multiple files as UploadFile")
        ],
    ):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    async def main():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 987 bytes
    - Viewed (0)
  2. fastapi/exception_handlers.py

        if not is_body_allowed_for_status_code(exc.status_code):
            return Response(status_code=exc.status_code, headers=headers)
        return JSONResponse(
            {"detail": exc.detail}, status_code=exc.status_code, headers=headers
        )
    
    
    async def request_validation_exception_handler(
        request: Request, exc: RequestValidationError
    ) -> JSONResponse:
        return JSONResponse(
            status_code=HTTP_422_UNPROCESSABLE_ENTITY,
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Jun 11 19:08:14 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  3. src/main/java/jcifs/smb1/smb1/SmbComOpenAndXResponse.java

            bufferIndex += 2;
            serverFid = readInt4( buffer, bufferIndex );
            bufferIndex += 6;
    
            return bufferIndex - start;
        }
        int readBytesWireFormat( byte[] buffer, int bufferIndex ) {
            return 0;
        }
        public String toString() {
            return new String( "SmbComOpenAndXResponse[" +
                super.toString() +
                ",fid=" + fid +
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 2.8K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb1/com/SmbComDelete.java

            return 0;
        }
    
    
        @Override
        protected int readBytesWireFormat ( byte[] buffer, int bufferIndex ) {
            return 0;
        }
    
    
        @Override
        public String toString () {
            return new String(
                "SmbComDelete[" + super.toString() + ",searchAttributes=0x" + Hexdump.toHexString(this.searchAttributes, 4) + ",fileName=" + this.path
                        + "]");
        }
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.3K bytes
    - Viewed (0)
  5. tests/test_custom_middleware_exception.py

                            "message": "File limit exceeded",
                        },
                    )
                return message
    
            return inner
    
        async def __call__(self, scope, receive, send):
            if scope["type"] != "http" or self.max_content_size is None:
                await self.app(scope, receive, send)
                return
    
            wrapper = self.receive_wrapper(receive)
            await self.app(scope, wrapper, send)
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Aug 25 21:44:40 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/es/config/exentity/RequestHeader.java

        private WebConfig webConfig;
    
        public String getId() {
            return asDocMeta().id();
        }
    
        public void setId(final String id) {
            asDocMeta().id(id);
        }
    
        public Long getVersionNo() {
            return asDocMeta().version();
        }
    
        public void setVersionNo(final Long version) {
            asDocMeta().version(version);
        }
    
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  7. fastapi/security/http.py

                    )
                else:
                    return None
            if scheme.lower() != "bearer":
                if self.auto_error:
                    raise HTTPException(
                        status_code=HTTP_403_FORBIDDEN,
                        detail="Invalid authentication credentials",
                    )
                else:
                    return None
            return HTTPAuthorizationCredentials(scheme=scheme, credentials=credentials)
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Sep 19 09:47:28 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/binarycompatibility/JapicmpTask.java

            if (report.isPresent()) {
                return report.get().toConfiguration();
            }
            return null;
        }
    
        private static File maybeFile(RegularFileProperty property) {
            if (property.isPresent()) {
                return property.getAsFile().get();
            }
            return null;
        }
    
        private Configuration resolveJaxb() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Apr 26 10:58:32 UTC 2023
    - 13.3K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/transformer/FessXpathTransformer.java

            if (namedItem == null) {
                return null;
            }
            final String value = namedItem.getTextContent();
            if (value == null) {
                return null;
            }
            try {
                return Integer.parseInt(value);
            } catch (final NumberFormatException e) {
                if (value.endsWith("%") || value.endsWith("px")) {
                    return null;
                }
                return 0;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Oct 24 13:01:38 UTC 2024
    - 42.9K bytes
    - Viewed (0)
  10. build-logic/documentation/src/test/groovy/gradlebuild/docs/dsl/docbook/ClassDocMethodsBuilderTest.groovy

            _ * classMetaData.className >> name
            return classMetaData
        }
    
        def classDoc(String name = 'org.gradle.Class') {
            ClassDoc doc = Mock()
            _ * doc.name >> name
            _ * doc.toString() >> "ClassDoc '$name'"
            return doc
        }
    
        def property(String name, ClassMetaData classMetaData) {
            return property([:], name, classMetaData)
        }
    
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Dec 09 08:14:05 UTC 2020
    - 8.4K bytes
    - Viewed (0)
Back to top