Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 15 for getBody (0.05 sec)

  1. internal/rest/client.go

    		case *bytes.Buffer:
    			req.ContentLength = int64(v.Len())
    			buf := v.Bytes()
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := bytes.NewReader(buf)
    				return io.NopCloser(r), nil
    			}
    		case *bytes.Reader:
    			req.ContentLength = int64(v.Len())
    			snapshot := *v
    			req.GetBody = func() (io.ReadCloser, error) {
    				r := snapshot
    				return io.NopCloser(&r), nil
    			}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Jul 26 12:55:01 UTC 2024
    - 14.7K bytes
    - Viewed (0)
  2. mockwebserver/api/mockwebserver3.api

    	public synthetic fun <init> (Lmockwebserver3/MockResponse$Builder;Lkotlin/jvm/internal/DefaultConstructorMarker;)V
    	public final fun getBody ()Lmockwebserver3/MockResponseBody;
    	public final fun getBodyDelayNanos ()J
    	public final fun getCode ()I
    	public final fun getHeaders ()Lokhttp3/Headers;
    	public final fun getHeadersDelayNanos ()J
    	public final fun getInTunnel ()Z
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Tue Jan 03 21:59:45 UTC 2023
    - 12.7K bytes
    - Viewed (0)
  3. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XpathTransformerTest.java

            assertTrue(obj instanceof TestEntity);
            final TestEntity entity = (TestEntity) obj;
            assertEquals("タイトル", entity.getTitle());
            assertEquals("第一章 第一節 ほげほげふがふが LINK 第2章 第2節", entity.getBody());
            final List<String> list = new ArrayList<String>();
            list.add("リスト1");
            list.add("リスト2");
            list.add("リスト3");
            assertEquals(list, entity.getList());
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. mockwebserver-deprecated/api/mockwebserver.api

    	public final fun headers (Lokhttp3/Headers;)V
    	public final fun http2ErrorCode (I)V
    	public final fun removeHeader (Ljava/lang/String;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setBody (Ljava/lang/String;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setBody (Lokio/Buffer;)Lokhttp3/mockwebserver/MockResponse;
    	public final fun setBodyDelay (JLjava/util/concurrent/TimeUnit;)Lokhttp3/mockwebserver/MockResponse;
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jul 22 12:28:51 UTC 2023
    - 10.2K bytes
    - Viewed (0)
  5. fess-crawler/src/test/java/org/codelibs/fess/crawler/transformer/impl/XmlTransformerTest.java

            assertTrue(obj instanceof TestEntity);
            final TestEntity entity = (TestEntity) obj;
            assertEquals("タイトル", entity.getTitle());
            assertEquals("第一章 第一節 ほげほげふがふが LINK 第2章 第2節", entity.getBody());
            final List<String> list = new ArrayList<String>();
            list.add("リスト1");
            list.add("リスト2");
            list.add("リスト3");
            assertEquals(list, entity.getList());
        }
    
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 13.5K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/it/CrawlTestBase.java

                final String schedulerId = getSchedulerIds(namePrefix).get(0);
                final Response response = checkMethodBase(requestBody).post("/api/admin/scheduler/" + schedulerId + "/start");
                if (response.getBody().jsonPath().getInt("response.status") == 0) {
                    logger.info("Start scheduler \"{}\"", schedulerId);
                    return;
                }
                ThreadUtil.sleep(1000L);
            }
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  7. mockwebserver-deprecated/src/test/java/okhttp3/mockwebserver/MockWebServerTest.kt

        assertThat(response.status).isEqualTo("HTTP/1.1 202 That'll do pig")
      }
    
      @Test
      fun setBodyAdjustsHeaders() {
        val response = MockResponse().setBody("ABC")
        assertThat(headersToList(response)).containsExactly("Content-Length: 3")
        assertThat(response.getBody()!!.readUtf8()).isEqualTo("ABC")
      }
    
      @Test
      fun mockResponseAddHeader() {
        val response =
          MockResponse()
            .clearHeaders()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 21.9K bytes
    - Viewed (0)
  8. api/go1.8.txt

    pkg net/http, type PushOptions struct
    pkg net/http, type PushOptions struct, Header Header
    pkg net/http, type PushOptions struct, Method string
    pkg net/http, type Request struct, GetBody func() (io.ReadCloser, error)
    pkg net/http, type Server struct, IdleTimeout time.Duration
    pkg net/http, type Server struct, ReadHeaderTimeout time.Duration
    pkg net/http, type Transport struct, ProxyConnectHeader Header
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Wed Dec 21 05:25:57 UTC 2016
    - 16.3K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        mockResponse.headers = headersOf()
        mockResponse.trailers = headersOf()
        mockResponse = mockResponse.removeHeader("")
        var body: Buffer? = mockResponse.getBody()
        mockResponse = mockResponse.setBody(Buffer())
        mockResponse = mockResponse.setChunkedBody(Buffer(), 0)
        mockResponse = mockResponse.setChunkedBody("", 0)
        var socketPolicy: SocketPolicy = mockResponse.socketPolicy
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/internal/aether/ReverseTreeRepositoryListener.java

                }
    
                Artifact resolvedArtifact = event.getArtifact();
                Artifact nodeArtifact = collectStepTrace.getNode().getArtifact();
    
                if (isInScope(resolvedArtifact, nodeArtifact) || "pom".equals(resolvedArtifact.getExtension())) {
                    Dependency node = collectStepTrace.getNode();
                    trackingData.add(resolvedArtifact.toString());
                    indent += "  ";
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 9.8K bytes
    - Viewed (0)
Back to top