Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 879 for charset (0.11 sec)

  1. samples/static-server/src/main/java/okhttp3/sample/SampleServer.java

          return new MockResponse()
              .setStatus("HTTP/1.1 404")
              .addHeader("content-type: text/plain; charset=utf-8")
              .setBody("NOT FOUND: " + path);
        } catch (IOException e) {
          return new MockResponse()
              .setStatus("HTTP/1.1 500")
              .addHeader("content-type: text/plain; charset=utf-8")
              .setBody("SERVER ERROR: " + e);
        }
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Jan 02 02:50:44 UTC 2019
    - 4.7K bytes
    - Viewed (0)
  2. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

     * limitations under the License.
     */
    @file:Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
    
    package okhttp3.logging
    
    import java.io.IOException
    import java.nio.charset.Charset
    import java.util.TreeSet
    import java.util.concurrent.TimeUnit
    import okhttp3.Headers
    import okhttp3.HttpUrl
    import okhttp3.Interceptor
    import okhttp3.OkHttpClient
    import okhttp3.Response
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  3. guava/src/com/google/common/io/Resources.java

       * @param url the URL to read from
       * @param charset the charset used to decode the input stream; see {@link StandardCharsets} for
       *     helpful predefined constants
       * @return a string containing all the characters from the URL
       * @throws IOException if an I/O error occurs.
       */
      public static String toString(URL url, Charset charset) throws IOException {
        return asCharSource(url, charset).read();
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Aug 02 13:50:22 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/fs/FileSystemClient.java

        }
    
        public void setCharset(final String charset) {
            this.charset = charset;
        }
    
        /*
         * (non-Javadoc)
         *
         * @see org.codelibs.fess.crawler.client.CrawlerClient#doHead(java.lang.String)
         */
        @Override
        public ResponseData doHead(final String url) {
            try {
                final ResponseData responseData = processRequest(url, false);
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Thu Feb 22 01:47:32 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/MediaType.kt

      internal val parameterNamesAndValues: Array<String>,
    ) {
      /**
       * Returns the charset of this media type, or [defaultValue] if either this media type doesn't
       * specify a charset, or if its charset is unsupported by the current runtime.
       */
      @JvmOverloads
      fun charset(defaultValue: Charset? = null): Charset? {
        val charset = parameter("charset") ?: return defaultValue
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  6. guava/src/com/google/common/io/Files.java

          imports = "com.google.common.io.Files")
      public
      static void copy(File from, Charset charset, Appendable to) throws IOException {
        asCharSource(from, charset).copyTo(to);
      }
    
      /**
       * Appends a character sequence (such as a string) to a file using the given character set.
       *
       * @param from the character sequence to append
       * @param to the destination file
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jul 22 19:03:12 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  7. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/ResponseData.java

            responseBodyFile = responseBody;
            isTemporaryFile = isTemporary;
        }
    
        public String getCharSet() {
            return charSet;
        }
    
        public void setCharSet(final String charSet) {
            this.charSet = charSet;
        }
    
        public long getContentLength() {
            return contentLength;
        }
    
        public void setContentLength(final long contentLength) {
    Registered: Sun Nov 10 03:50:12 UTC 2024
    - Last Modified: Sat Oct 12 01:40:57 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/io/ByteSink.java

        }
      }
    
      /**
       * A char sink that encodes written characters with a charset and writes resulting bytes to this
       * byte sink.
       */
      private final class AsCharSink extends CharSink {
    
        private final Charset charset;
    
        private AsCharSink(Charset charset) {
          this.charset = checkNotNull(charset);
        }
    
        @Override
        public Writer openStream() throws IOException {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Oct 28 16:55:09 UTC 2024
    - 5K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/FunnelsTest.java

      }
    
      public void testForStringsCharset() {
        for (Charset charset : Charset.availableCharsets().values()) {
          PrimitiveSink primitiveSink = mock(PrimitiveSink.class);
          Funnels.stringFunnel(charset).funnel("test", primitiveSink);
          verify(primitiveSink).putString("test", charset);
        }
      }
    
      public void testForStringsCharset_null() {
        for (Charset charset : Charset.availableCharsets().values()) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Jul 23 14:22:54 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  10. docs/en/docs/reference/responses.md

                - chunk_size
                - charset
                - status_code
                - media_type
                - body
                - background
                - raw_headers
                - render
                - init_headers
                - headers
                - set_cookie
                - delete_cookie
    
    ::: fastapi.responses.HTMLResponse
        options:
            members:
                - charset
                - status_code
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 3.7K bytes
    - Viewed (0)
Back to top