Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3101 - 3110 of 6,918 for RETURN (0.04 sec)

  1. docs_src/path_operation_configuration/tutorial002_py39.py

    
    @app.post("/items/", response_model=Item, tags=["items"])
    async def create_item(item: Item):
        return item
    
    
    @app.get("/items/", tags=["items"])
    async def read_items():
        return [{"name": "Foo", "price": 42}]
    
    
    @app.get("/users/", tags=["users"])
    async def read_users():
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat May 14 11:59:59 UTC 2022
    - 575 bytes
    - Viewed (0)
  2. internal/http/transports.go

    	return func() *http.Transport {
    		return tr
    	}
    }
    
    // NewHTTPTransportWithTimeout allows setting a timeout for response headers
    func (s ConnSettings) NewHTTPTransportWithTimeout(timeout time.Duration) *http.Transport {
    	tr := s.getDefaultTransport(0)
    
    	// Settings specific to this transport.
    	tr.ResponseHeaderTimeout = timeout
    	return tr
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 6K bytes
    - Viewed (0)
  3. internal/event/targetlist_test.go

    	if target.sendErr {
    		return errors.New("send error")
    	}
    
    	return nil
    }
    
    // SendFromStore - interface compatible method does no-op.
    func (target *ExampleTarget) SendFromStore(_ store.Key) error {
    	return nil
    }
    
    func (target ExampleTarget) Close() error {
    	if target.closeErr {
    		return errors.New("close error")
    	}
    
    	return nil
    }
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Dec 05 10:16:33 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/io/Smb2WriteResponse.java

        public Smb2WriteResponse ( Configuration config ) {
            super(config);
        }
    
    
        /**
         * @return the count
         */
        public final int getCount () {
            return this.count;
        }
    
    
        /**
         * @return the remaining
         */
        public final int getRemaining () {
            return this.remaining;
        }
    
    
        /**
         * {@inheritDoc}
         *
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 2.5K bytes
    - Viewed (0)
  5. src/main/java/jcifs/netbios/NameQueryResponse.java

    
        @Override
        int writeBodyWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
        int readBodyWireFormat ( byte[] src, int srcIndex ) {
            return readResourceRecordWireFormat(src, srcIndex);
        }
    
    
        @Override
        int writeRDataWireFormat ( byte[] dst, int dstIndex ) {
            return 0;
        }
    
    
        @Override
    Registered: Sun Nov 03 00:10:13 UTC 2024
    - Last Modified: Sun Dec 20 14:09:34 UTC 2020
    - 2.2K bytes
    - Viewed (0)
  6. compat/maven-model-builder/src/main/java/org/apache/maven/model/locator/DefaultModelLocator.java

        public File locatePom(File projectDirectory) {
            Path path = locatePom(projectDirectory != null ? projectDirectory.toPath() : null);
            return path != null ? path.toFile() : null;
        }
    
        @Override
        public Path locatePom(Path projectDirectory) {
            return projectDirectory != null ? projectDirectory : Paths.get(System.getProperty("user.dir"));
        }
    
        @Deprecated
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/artifact/FatArtifactTraverser.java

            return !Boolean.parseBoolean(prop);
        }
    
        @Override
        public DependencyTraverser deriveChildTraverser(DependencyCollectionContext context) {
            requireNonNull(context, "context cannot be null");
            return this;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  8. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Stream.kt

      val isOpen: Boolean
        get() {
          this.withLock {
            if (errorCode != null) {
              return false
            }
            if ((source.finished || source.closed) &&
              (sink.finished || sink.closed) &&
              hasResponseHeaders
            ) {
              return false
            }
            return true
          }
        }
    
      /** Returns true if this stream was created by this peer. */
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 20 17:03:43 UTC 2024
    - 23.2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/base/StringsRepeatBenchmark.java

        final int len = string.length();
        final int size = len * count;
        char[] array = new char[size];
        for (int i = 0; i < size; i += len) {
          string.getChars(0, len, array, i);
        }
        return new String(array);
      }
    
      @Benchmark
      void mikeRepeat(long reps) {
        for (int i = 0; i < reps; i++) {
          String x = mikeRepeat(originalString, count);
          if (x.length() != (originalString.length() * count)) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Sep 17 20:24:24 UTC 2021
    - 3.3K bytes
    - Viewed (0)
  10. guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java

          }
        } else {
          for (int i = 0; i < reps; i++) {
            List<Integer> copy = new ArrayList<>(input);
            sort(copy);
            dummy += ImmutableList.copyOf(copy).get(0);
          }
        }
        return dummy;
      }
    
      @Benchmark
      int ordering(int reps) {
        int dummy = 0;
        if (mutable) {
          for (int i = 0; i < reps; i++) {
            dummy += ORDERING.sortedCopy(input).get(0);
          }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.5K bytes
    - Viewed (0)
Back to top