Search Options

Results per page
Sort
Preferred Languages
Advance

Results 241 - 250 of 1,772 for request (0.06 sec)

  1. docs_src/path_operation_advanced_configuration/tutorial007_pv1.py

    async def create_item(request: Request):
        raw_body = await request.body()
        try:
            data = yaml.safe_load(raw_body)
        except yaml.YAMLError:
            raise HTTPException(status_code=422, detail="Invalid YAML")
        try:
            item = Item.parse_obj(data)
        except ValidationError as e:
            raise HTTPException(status_code=422, detail=e.errors())
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Jul 07 17:12:13 UTC 2023
    - 789 bytes
    - Viewed (0)
  2. doc/next/6-stdlib/99-minor/net/http/65035.md

    [Transport]'s limit on 1xx informational responses received
    in response to a request has changed.
    It previously aborted a request and returned an error after
    receiving more than 5 1xx responses.
    It now returns an error if the total size of all 1xx responses
    exceeds the [Transport.MaxResponseHeaderBytes] configuration setting.
    
    In addition, when a request has a
    [net/http/httptrace.ClientTrace.Got1xxResponse]
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Fri Oct 25 03:22:33 UTC 2024
    - 549 bytes
    - Viewed (0)
  3. compat/maven-model-builder/src/test/java/org/apache/maven/model/building/DefaultModelBuilderFactoryTest.java

            assertNotNull(builder);
    
            DefaultModelBuildingRequest request = new DefaultModelBuildingRequest();
            request.setProcessPlugins(true);
            request.setPomFile(getPom("simple"));
    
            ModelBuildingResult result = builder.build(request);
            assertNotNull(result);
            assertNotNull(result.getEffectiveModel());
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  4. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuildingEvent.java

        private Model model;
    
        private final ModelBuildingRequest request;
    
        private final ModelProblemCollector problems;
    
        DefaultModelBuildingEvent(Model model, ModelBuildingRequest request, ModelProblemCollector problems) {
            this.model = model;
            this.request = request;
            this.problems = problems;
        }
    
        @Override
        public Model getModel() {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/ModelBuilder.java

         * Builds the effective model of the specified POM.
         *
         * @param request The model building request that holds the parameters, must not be {@code null}.
         * @return The result of the model building, never {@code null}.
         * @throws ModelBuildingException If the effective model could not be built.
         */
        ModelBuildingResult build(ModelBuildingRequest request) throws ModelBuildingException;
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/PostFile.java

      public void run() throws Exception {
        File file = new File("README.md");
    
        Request request = new Request.Builder()
            .url("https://api.github.com/markdown/raw")
            .post(RequestBody.create(file, MEDIA_TYPE_MARKDOWN))
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat May 25 18:02:55 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  7. samples/guide/src/main/java/okhttp3/recipes/kt/DevServer.kt

          .build()
    
      fun run() {
        try {
          val request = Request(server.url("/"))
    
          client.newCall(request).execute().use { response ->
            if (!response.isSuccessful) throw IOException("Unexpected code $response")
    
            println(response.request.url)
          }
        } finally {
          server.shutdown()
        }
      }
    }
    
    fun main() {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  8. compat/maven-model-builder/src/main/java/org/apache/maven/model/interpolation/DefaultModelVersionProcessor.java

            if (request.getUserProperties().containsKey(REVISION_PROPERTY)) {
                modelProperties.put(REVISION_PROPERTY, request.getUserProperties().get(REVISION_PROPERTY));
            }
            if (request.getUserProperties().containsKey(CHANGELIST_PROPERTY)) {
                modelProperties.put(CHANGELIST_PROPERTY, request.getUserProperties().get(CHANGELIST_PROPERTY));
            }
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  9. container-tests/src/test/java/okhttp3/containers/BasicMockServerTest.kt

    import okhttp3.HttpUrl.Companion.toHttpUrl
    import okhttp3.OkHttpClient
    import okhttp3.Request
    import org.junit.jupiter.api.Test
    import org.mockserver.client.MockServerClient
    import org.mockserver.configuration.Configuration
    import org.mockserver.logging.MockServerLogger
    import org.mockserver.model.HttpRequest.request
    import org.mockserver.model.HttpResponse.response
    import org.mockserver.socket.tls.KeyStoreFactory
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

    class AndroidLoggingTest {
      val clientBuilder =
        OkHttpClient.Builder()
          .connectionSpecs(listOf(ConnectionSpec.CLEARTEXT))
          .dns {
            throw UnknownHostException("shortcircuit")
          }
    
      val request = Request("http://google.com/robots.txt".toHttpUrl())
    
      @Test
      fun testHttpLoggingInterceptor() {
        val interceptor =
          HttpLoggingInterceptor.androidLogging(tag = "testHttpLoggingInterceptor").apply {
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 11:07:32 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top