Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 381 - 390 of 684 for _clone (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. tests/test_tutorial/test_websockets/test_tutorial003.py

            client1_says = "Client #1234 says: Hello from 1234"
            assert data2 == client1_says
            data1 = connection.receive_text()
            assert data1 == client1_says
            connection_two.close()
            data1 = connection.receive_text()
    Created: Sun Dec 28 07:19:09 GMT 2025
    - Last Modified: Wed Dec 17 21:25:59 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  2. internal/http/transports.go

    	}
    }
    
    // uaTransport - User-Agent  transport
    type uaTransport struct {
    	ua string
    	rt http.RoundTripper
    }
    
    func (u *uaTransport) RoundTrip(req *http.Request) (*http.Response, error) {
    	req2 := req.Clone(req.Context())
    	req2.Header.Set("User-Agent", u.ua)
    	return u.rt.RoundTrip(req2)
    }
    
    // WithUserAgent wraps an existing transport with custom User-Agent
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 08 17:51:53 GMT 2025
    - 6.5K bytes
    - Click Count (0)
  3. internal/config/dns/store.go

    type Store interface {
    	Put(bucket string) error
    	Get(bucket string) ([]SrvRecord, error)
    	Delete(bucket string) error
    	List() (map[string][]SrvRecord, error)
    	DeleteRecord(record SrvRecord) error
    	Close() error
    	String() string
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Tue Jun 01 21:59:40 GMT 2021
    - 1.6K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/io/IoTestCase.java

            byte[] buf = new byte[4096];
            for (int read = in.read(buf); read != -1; read = in.read(buf)) {
              out.write(buf, 0, read);
            }
          } finally {
            out.close();
          }
        } finally {
          in.close();
        }
      }
    
      @CanIgnoreReturnValue
      private boolean delete(File file) {
        if (file.isDirectory()) {
          File[] files = file.listFiles();
          if (files != null) {
    Created: Fri Dec 26 12:43:10 GMT 2025
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 5.6K bytes
    - Click Count (0)
  5. internal/event/targetlist_test.go

    	return nil
    }
    
    // SendFromStore - interface compatible method does no-op.
    func (target *ExampleTarget) SendFromStore(_ store.Key) error {
    	return nil
    }
    
    func (target ExampleTarget) Close() error {
    	if target.closeErr {
    		return errors.New("close error")
    	}
    
    	return nil
    }
    
    func (target ExampleTarget) IsActive() (bool, error) {
    	return false, errors.New("not connected to target server/service")
    }
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Wed Apr 09 14:28:39 GMT 2025
    - 6K bytes
    - Click Count (0)
  6. samples/guide/src/main/java/okhttp3/recipes/LoggingInterceptors.java

        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        Response response = client.newCall(request).execute();
        response.body().close();
      }
    
      private static class LoggingInterceptor implements Interceptor {
        @Override public Response intercept(Chain chain) throws IOException {
          long t1 = System.nanoTime();
    Created: Fri Dec 26 11:42:13 GMT 2025
    - Last Modified: Fri Jan 01 15:55:32 GMT 2016
    - 2K bytes
    - Click Count (0)
  7. impl/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java

        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object event) throws Exception {}
    
        @Override
        public void close() throws Exception {}
    Created: Sun Dec 28 03:35:09 GMT 2025
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 1.2K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SmbPipeOutputStream.java

         *
         * @return the handle
         */
        protected SmbPipeHandleImpl getHandle() {
            return this.handle;
        }
    
        @Override
        public void close() {
            // ignore, the shared file descriptor is closed by the pipe handle
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb1/http/NtlmHttpURLConnection.java

                this.stream = stream;
                this.collector = collector;
            }
    
            @Override
            public void close() throws IOException {
                stream.close();
                collector.close();
            }
    
            @Override
            public void flush() throws IOException {
                stream.flush();
                collector.flush();
            }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 22.1K bytes
    - Click Count (0)
  10. src/main/java/org/codelibs/fess/storage/S3StorageClient.java

                return true;
            } catch (final Exception e) {
                return false;
            }
        }
    
        @Override
        public void close() {
            if (s3Client != null) {
                s3Client.close();
            }
        }
    
        /**
         * Extracts the file/directory name from a full object path.
         *
         * @param objectName the full object path
    Created: Sat Dec 20 09:19:18 GMT 2025
    - Last Modified: Sat Dec 13 02:21:17 GMT 2025
    - 10.9K bytes
    - Click Count (0)
Back to Top