Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 122 for formdata (0.05 sec)

  1. fastapi/dependencies/utils.py

    from pydantic.fields import FieldInfo
    from starlette.background import BackgroundTasks as StarletteBackgroundTasks
    from starlette.concurrency import run_in_threadpool
    from starlette.datastructures import (
        FormData,
        Headers,
        ImmutableMultiDict,
        QueryParams,
        UploadFile,
    )
    from starlette.requests import HTTPConnection, Request
    from starlette.responses import Response
    from starlette.websockets import WebSocket
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sun Oct 27 21:46:26 UTC 2024
    - 34.7K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    from fastapi import FastAPI, Form
    from pydantic import BaseModel
    
    app = FastAPI()
    
    
    class FormData(BaseModel):
        username: str
        password: str
        model_config = {"extra": "forbid"}
    
    
    @app.post("/login/")
    async def login(data: Annotated[FormData, Form()]):
        return data
    ```
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  3. compat/maven-embedder/src/main/java/org/apache/maven/cli/transfer/FileSizeFormat.java

                }
            }
        }
    
        public String format(long size) {
            return format(size, null);
        }
    
        public String format(long size, ScaleUnit unit) {
            return format(size, unit, false);
        }
    
        public String format(long size, ScaleUnit unit, boolean omitSymbol) {
            StringBuilder sb = new StringBuilder();
            format(sb, size, unit, omitSymbol);
            return sb.toString();
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.5K bytes
    - Viewed (0)
  4. cmd/xl-storage.go

    	// Specific optimization to avoid re-read from the drives for `format.json`
    	// in-case the caller is a network operation.
    	if volume == minioMetaBucket && path == formatConfigFile {
    		s.RLock()
    		formatData := make([]byte, len(s.formatData))
    		copy(formatData, s.formatData)
    		s.RUnlock()
    		if len(formatData) > 0 {
    			return formatData, nil
    		}
    	}
    	volumeDir, err := s.getVolDir(volume)
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
  5. istioctl/pkg/proxyconfig/proxyconfig.go

    	switch outputFormat {
    	case "", summaryOutput:
    	case jsonOutput, yamlOutput:
    		// for yaml output we will convert the json to yaml when printed
    		path += "?format=json"
    	default:
    		return "", fmt.Errorf("unable to match a printer suitable for the output format %s, allowed formats are: json,yaml,short", outputFormat)
    	}
    	result, err := kubeClient.EnvoyDoWithPort(context.TODO(), podName, podNamespace, "GET", path, proxyAdminPort)
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Thu Oct 24 15:53:49 UTC 2024
    - 50.6K bytes
    - Viewed (0)
  6. compat/maven-embedder/src/test/java/org/apache/maven/cli/transfer/FileSizeFormatTest.java

            assertEquals("0 kB", format.format(_0_bytes, ScaleUnit.KILOBYTE));
            assertEquals("0 MB", format.format(_0_bytes, ScaleUnit.MEGABYTE));
            assertEquals("0 GB", format.format(_0_bytes, ScaleUnit.GIGABYTE));
    
            long _5_bytes = 5L;
            assertEquals("5 B", format.format(_5_bytes));
            assertEquals("5 B", format.format(_5_bytes, ScaleUnit.BYTE));
            assertEquals("0 kB", format.format(_5_bytes, ScaleUnit.KILOBYTE));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 13K bytes
    - Viewed (0)
  7. compat/maven-embedder/src/main/java/org/fusesource/jansi/Ansi.java

        }
    
        /**
         * String formats and renders the supplied arguments.  Uses the {@link org.jline.jansi.AnsiRenderer}
         * to generate the ANSI escape sequences.
         *
         * @param text format
         * @param args arguments
         * @return this
         * @since 2.2
         */
        public Ansi render(final String text, Object... args) {
            a(String.format(new org.jline.jansi.Ansi().render(text).toString(), args));
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  8. compat/maven-embedder/src/main/java/org/apache/maven/cli/logging/Slf4jStdoutLogger.java

        public void debug(Marker marker, String format, Object arg1, Object arg2) {}
    
        public void debug(Marker marker, String format, Object... arguments) {}
    
        public void debug(Marker marker, String msg, Throwable t) {}
    
        public boolean isInfoEnabled() {
            return false;
        }
    
        public void info(String msg) {}
    
        public void info(String format, Object arg) {}
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  9. src/main/webapp/js/admin/plugins/daterangepicker/daterangepicker.js

                  if (this.timePicker) {
                        var format = this.timePickerSeconds ? "YYYY-MM-DD HH:mm:ss" : "YYYY-MM-DD HH:mm";
                        //ignore times when comparing dates if time picker seconds is not enabled
                        if (this.startDate.format(format) == this.ranges[range][0].format(format) && this.endDate.format(format) == this.ranges[range][1].format(format)) {
                            customRange = false;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sat Oct 26 01:49:09 UTC 2024
    - 64.8K bytes
    - Viewed (0)
  10. istioctl/pkg/writer/compare/sds/writer.go

    func NewSDSWriter(w io.Writer, format Format) SDSWriter {
    	return &sdsWriter{
    		w:      w,
    		output: format,
    	}
    }
    
    // sdsWriter is provided concrete implementation of SDSWriter
    type sdsWriter struct {
    	w      io.Writer
    	output Format
    }
    
    // PrintSecretItems uses the user supplied output format to determine how to display the diffed secrets
    Registered: Wed Nov 06 22:53:10 UTC 2024
    - Last Modified: Mon Oct 28 19:52:53 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top