Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 2,143 for ELSE (0.02 sec)

  1. docs_src/request_files/tutorial001_02_an.py

        if not file:
            return {"message": "No file sent"}
        else:
            return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: Union[UploadFile, None] = None):
        if not file:
            return {"message": "No upload file sent"}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 553 bytes
    - Viewed (0)
  2. docs_src/request_files/tutorial001_02_an_py39.py

        if not file:
            return {"message": "No file sent"}
        else:
            return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(file: Union[UploadFile, None] = None):
        if not file:
            return {"message": "No upload file sent"}
        else:
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 524 bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/connection/ConnectPlan.kt

            connectTls(sslSocket, connectionSpec)
            user.secureConnectEnd(handshake)
          } else {
            socket = rawSocket
            protocol =
              when {
                Protocol.H2_PRIOR_KNOWLEDGE in route.address.protocols -> Protocol.H2_PRIOR_KNOWLEDGE
                else -> Protocol.HTTP_1_1
              }
          }
    
          val connection =
            RealConnection(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 18.6K bytes
    - Viewed (0)
  4. internal/bucket/object/lock/lock_test.go

    		err = xml.Unmarshal(d, &dr)
    		//nolint:gocritic
    		if tt.expectedErr == nil {
    			if err != nil {
    				t.Fatalf("error: expected = <nil>, got = %v", err)
    			}
    		} else if err == nil {
    			t.Fatalf("error: expected = %v, got = <nil>", tt.expectedErr)
    		} else if tt.expectedErr.Error() != err.Error() {
    			t.Fatalf("error: expected = %v, got = %v", tt.expectedErr, err)
    		}
    	}
    }
    
    func TestParseObjectLockConfig(t *testing.T) {
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Jun 29 01:20:27 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. compat/maven-embedder/src/main/java/org/apache/maven/cli/configuration/SettingsXmlConfigurationProcessor.java

                }
            } else if (cliRequest.getRootDirectory() != null) {
                projectSettingsFile = DEFAULT_PROJECT_SETTINGS_FILE;
                projectSettingsFile = resolveFile(
                        projectSettingsFile, cliRequest.getRootDirectory().toString());
            } else {
                projectSettingsFile = null;
            }
    
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/entity/QueryContext.java

                } else if (queryString.startsWith(ALLINTITLE_FIELD_PREFIX)) {
                    defaultField = ComponentUtil.getFessConfig().getIndexFieldTitle();
                    this.queryString = queryString.substring(ALLINTITLE_FIELD_PREFIX.length());
                } else {
                    this.queryString = queryString;
                }
            } else {
                this.queryString = queryString;
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  7. cmd/common-main.go

    		os.Setenv("CONSOLE_ANIMATED_LOGIN", value)
    	}
    
    	// Pass on the session duration environment variable, else we will default to 12 hours
    	if valueSts := env.Get(config.EnvMinioStsDuration, ""); valueSts != "" {
    		os.Setenv("CONSOLE_STS_DURATION", valueSts)
    	} else if valueSession := env.Get(config.EnvBrowserSessionDuration, ""); valueSession != "" {
    		os.Setenv("CONSOLE_STS_DURATION", valueSession)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Sep 24 21:50:11 UTC 2024
    - 31.7K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/MultisetsCollectionTest.java

                // add to both; the one already containing it will have more
                multiset1.add(element);
                multiset2.add(element);
              } else if (i % 2 == 0) {
                multiset1.add(elements[i]);
              } else {
                multiset2.add(elements[i]);
              }
            }
            return union(multiset1, multiset2);
          }
        };
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  9. src/main/java/jcifs/smb1/smb1/SmbComTransaction.java

                totalDataCount = writeDataWireFormat( txn_buf, bufDataOffset );
    
                dataCount = Math.min( totalDataCount, available );
            } else {
                if (command != SMB_COM_NT_TRANSACT) {
                    command = SMB_COM_TRANSACTION_SECONDARY;
                } else {
                    command = SMB_COM_NT_TRANSACT_SECONDARY;
                }
                // totalParameterCount and totalDataCount are set ok from primary
    
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Fri Mar 22 21:10:40 UTC 2019
    - 10.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/FilteredEntryMultimap.java

              itr.remove();
              result.add(v);
            }
          }
          if (result.isEmpty()) {
            return null;
          } else if (unfiltered instanceof SetMultimap) {
            return unmodifiableSet(Sets.newLinkedHashSet(result));
          } else {
            return unmodifiableList(result);
          }
        }
    
        @Override
        Set<K> createKeySet() {
          @WeakOuter
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 12.1K bytes
    - Viewed (0)
Back to top