Search Options

Results per page
Sort
Preferred Languages
Advance

Results 3881 - 3890 of 6,918 for RETURN (0.05 sec)

  1. docs_src/request_files/tutorial001_03_an.py

    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_file(file: Annotated[bytes, File(description="A file read as bytes")]):
        return {"file_size": len(file)}
    
    
    @app.post("/uploadfile/")
    async def create_upload_file(
        file: Annotated[UploadFile, File(description="A file read as UploadFile")],
    ):
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 431 bytes
    - Viewed (0)
  2. docs_src/separate_openapi_schemas/tutorial001_py310.py

    
    class Item(BaseModel):
        name: str
        description: str | None = None
    
    
    app = FastAPI()
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 451 bytes
    - Viewed (0)
  3. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

            if (cacheResponse.code != HttpURLConnection.HTTP_GATEWAY_TIMEOUT) {
              return cacheResponse
            }
          } catch (ioe: IOException) {
            // Failures are ignored as we can fallback to the network
            // and hopefully repopulate the cache.
          }
        }
    
        return null
      }
    
      @Throws(Exception::class)
      private fun readResponse(
        hostname: String,
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Thu Oct 31 09:27:31 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  4. docs_src/separate_openapi_schemas/tutorial002_py310.py

        name: str
        description: str | None = None
    
    
    app = FastAPI(separate_input_output_schemas=False)
    
    
    @app.post("/items/")
    def create_item(item: Item):
        return item
    
    
    @app.get("/items/")
    def read_items() -> list[Item]:
        return [
            Item(
                name="Portal Gun",
                description="Device to travel through the multi-rick-verse",
            ),
            Item(name="Plumbus"),
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Aug 25 19:10:22 UTC 2023
    - 486 bytes
    - Viewed (0)
  5. docs_src/wsgi/tutorial001.py

    from markupsafe import escape
    
    flask_app = Flask(__name__)
    
    
    @flask_app.route("/")
    def flask_main():
        name = request.args.get("name", "World")
        return f"Hello, {escape(name)} from Flask!"
    
    
    app = FastAPI()
    
    
    @app.get("/v2")
    def read_main():
        return {"message": "Hello World"}
    
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Tue May 09 14:32:00 UTC 2023
    - 443 bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> ListMultimap<K, V> wrap(final ListMultimap<K, V> delegate) {
        return new ForwardingListMultimap<K, V>() {
          @Override
          protected ListMultimap<K, V> delegate() {
            return delegate;
          }
        };
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ForwardingListMultimapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> ListMultimap<K, V> wrap(final ListMultimap<K, V> delegate) {
        return new ForwardingListMultimap<K, V>() {
          @Override
          protected ListMultimap<K, V> delegate() {
            return delegate;
          }
        };
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingSetMultimapTest.java

            .addEqualityGroup(map2, wrap(map2))
            .testEquals();
      }
    
      private static <K, V> SetMultimap<K, V> wrap(final SetMultimap<K, V> delegate) {
        return new ForwardingSetMultimap<K, V>() {
          @Override
          protected SetMultimap<K, V> delegate() {
            return delegate;
          }
        };
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Feb 22 20:09:59 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. okhttp-testing-support/src/main/kotlin/okhttp3/RecordingEventListener.kt

          assertThat(e).matchesPredicate { it is CallStart || it is Canceled }
        } else {
          eventSequence.forEach loop@{
            when (e.closes(it)) {
              null -> return // no open event
              true -> return // found open event
              false -> return@loop // this is not the open event so continue
            }
          }
          fail<Any>("event $e without matching start event")
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 9K bytes
    - Viewed (0)
  10. .teamcity/src/test/kotlin/CIConfigIntegrationTests.kt

            val runnerStep = this.steps.items.find { it.name == "GRADLE_RUNNER" } as GradleBuildStep
            return runnerStep.tasks!!
        }
    
        private
        fun BaseGradleBuildType.getGradleParams(): String {
            val runnerStep = this.steps.items.find { it.name == "GRADLE_RUNNER" } as GradleBuildStep
            return runnerStep.gradleParams!!
        }
    
        @Test
        fun canSplitLargeProjects() {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Jul 18 07:02:47 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top