Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 262 for Body (0.12 sec)

  1. internal/rest/client.go

    func (c *Client) newRequest(ctx context.Context, u url.URL, body io.Reader) (*http.Request, error) {
    	rc, ok := body.(io.ReadCloser)
    	if !ok && body != nil {
    		rc = io.NopCloser(body)
    	}
    	req := &http.Request{
    		Method:     http.MethodPost,
    		URL:        &u,
    		Proto:      "HTTP/1.1",
    		ProtoMajor: 1,
    		ProtoMinor: 1,
    		Header:     make(http.Header),
    		Body:       rc,
    		Host:       u.Host,
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 14.4K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/MultipartBody.kt

          level = DeprecationLevel.ERROR,
        )
        fun body(): RequestBody = body
    
        companion object {
          @JvmStatic
          fun create(body: RequestBody): Part = create(null, body)
    
          @JvmStatic
          fun create(
            headers: Headers?,
            body: RequestBody,
          ): Part {
            require(headers?.get("Content-Type") == null) { "Unexpected header: Content-Type" }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/Response.kt

       * before the entire HTTP response body has been consumed.
       */
      @Throws(IOException::class)
      fun trailers(): Headers = trailersFn()
    
      /**
       * Peeks up to [byteCount] bytes from the response body and returns them as a new response
       * body. If fewer than [byteCount] bytes are in the response body, the full response body is
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/internal/tls/CertificatePinnerChainValidationTest.kt

        server.enqueue(
          MockResponse.Builder()
            .body("abc")
            .build(),
        )
        val call1 =
          client.newCall(
            Request.Builder()
              .url(server.url("/"))
              .build(),
          )
        val response1 = call1.execute()
        assertThat(response1.body.string()).isEqualTo("abc")
      }
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 23.8K bytes
    - Viewed (0)
  5. tests/test_tutorial/test_request_forms_and_files/test_tutorial001.py

        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
        response = client.post("/files/")
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", "file"],
                        "msg": "Field required",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  6. tests/test_tutorial/test_request_forms_and_files/test_tutorial001_an.py

        client = TestClient(app)
        return client
    
    
    def test_post_form_no_body(client: TestClient):
        response = client.post("/files/")
        assert response.status_code == 422, response.text
        assert response.json() == IsDict(
            {
                "detail": [
                    {
                        "type": "missing",
                        "loc": ["body", "file"],
                        "msg": "Field required",
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/MultipartReaderTest.kt

            "abc",
          ),
        )
        assertThat(partAbc.body.readUtf8()).isEqualTo("abcd\r\nefgh")
    
        val partIjk = parts.nextPart()!!
        assertThat(partIjk.headers).isEqualTo(
          headersOf(
            "Content-Type",
            "text/plain; charset=utf-8",
            "Content-ID",
            "ijk",
          ),
        )
        assertThat(partIjk.body.readUtf8()).isEqualTo("ijkl\r\nmnop\r\n")
    
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 13.8K bytes
    - Viewed (0)
  8. okhttp-dnsoverhttps/src/main/kotlin/okhttp3/dnsoverhttps/DnsOverHttps.kt

          }
    
          val body = response.body
    
          if (body.contentLength() > MAX_RESPONSE_SIZE) {
            throw IOException(
              "response size exceeds limit ($MAX_RESPONSE_SIZE bytes): ${body.contentLength()} bytes",
            )
          }
    
          val responseBytes = body.source().readByteString()
    
          return DnsRecordCodec.decodeAnswers(hostname, responseBytes)
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Fri Mar 22 07:09:21 GMT 2024
    - 9.8K bytes
    - Viewed (0)
  9. build-logic/documentation/src/main/groovy/gradlebuild/docs/dsl/source/SourceMetaDataVisitor.java

    import com.github.javaparser.ast.body.AnnotationDeclaration;
    import com.github.javaparser.ast.body.ClassOrInterfaceDeclaration;
    import com.github.javaparser.ast.body.EnumDeclaration;
    import com.github.javaparser.ast.body.FieldDeclaration;
    import com.github.javaparser.ast.body.MethodDeclaration;
    import com.github.javaparser.ast.body.Parameter;
    import com.github.javaparser.ast.body.TypeDeclaration;
    Java
    - Registered: Wed Apr 17 11:36:08 GMT 2024
    - Last Modified: Thu Sep 21 13:27:02 GMT 2023
    - 11.7K bytes
    - Viewed (0)
  10. .github/actions/notify-translations/app/main.py

              cursor
              node {
                id
                url
                body
              }
            }
          }
        }
      }
    }
    """
    
    add_comment_mutation = """
    mutation Q($discussion_id: ID!, $body: String!) {
      addDiscussionComment(input: {discussionId: $discussion_id, body: $body}) {
        comment {
          id
          url
          body
        }
      }
    }
    """
    
    update_comment_mutation = """
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Wed Sep 27 23:01:46 GMT 2023
    - 12.4K bytes
    - Viewed (0)
Back to top