Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 61 - 70 of 620 for resp (0.02 seconds)

  1. internal/config/subnet/subnet.go

    		Timeout:   10 * time.Second,
    		Transport: c.transport,
    	}
    
    	resp, err := client.Do(r)
    	if err != nil {
    		return "", err
    	}
    	defer xhttp.DrainBody(resp.Body)
    
    	respBytes, err := io.ReadAll(io.LimitReader(resp.Body, respBodyLimit))
    	if err != nil {
    		return "", err
    	}
    	respStr := string(respBytes)
    
    	if resp.StatusCode == http.StatusOK {
    		return respStr, nil
    	}
    
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 2.9K bytes
    - Click Count (0)
  2. internal/event/target/elasticsearch.go

    			}
    		}
    	}
    
    	if !found {
    		resp, err := c.Indices.Create(args.Index)
    		if err != nil {
    			return err
    		}
    		defer xhttp.DrainBody(resp.Body)
    		if resp.IsError() {
    			return fmt.Errorf("Create index err: %v", res)
    		}
    		return nil
    	}
    	return nil
    }
    
    func (c *esClientV7) ping(ctx context.Context, _ ElasticsearchArgs) (bool, error) {
    	resp, err := c.Ping(
    		c.Ping.WithContext(ctx),
    	)
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Sun Sep 28 20:59:21 GMT 2025
    - 15K bytes
    - Click Count (0)
  3. internal/config/policy/plugin/config.go

    	if o.args.AuthToken != "" {
    		req.Header.Set("Authorization", o.args.AuthToken)
    	}
    
    	resp, err := o.client.Do(req)
    	if err != nil {
    		return false, err
    	}
    	defer o.args.CloseRespFn(resp.Body)
    
    	// Read the body to be saved later.
    	opaRespBytes, err := io.ReadAll(resp.Body)
    	if err != nil {
    		return false, err
    	}
    
    	// Handle large OPA responses when OPA URL is of
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 5.8K bytes
    - Click Count (0)
  4. src/main/java/jcifs/smb1/smb1/SmbFile.java

            }
            resp = new NetServerEnum2Response();
    
            boolean more;
            do {
                int n;
    
                send(req, resp);
    
                if (resp.status != WinError.ERROR_SUCCESS && resp.status != WinError.ERROR_MORE_DATA) {
                    throw new SmbException(resp.status, true);
                }
                more = resp.status == WinError.ERROR_MORE_DATA;
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 30 05:58:03 GMT 2025
    - 112.2K bytes
    - Click Count (0)
  5. internal/grid/README.md

        if err != nil { ... }
    
        // Read results from the stream
        err = stream.Results(func(resp *Resp) error {
            fmt.Println("Got result", resp)
            // Return the response for reuse
    		instance.PutResponse(resp)
            return nil
        })
    ```
    
    There are handlers for requests with:
     * No input stream: `RegisterNoInput`.
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Fri Oct 10 18:57:03 GMT 2025
    - 9.4K bytes
    - Click Count (0)
  6. src/main/java/jcifs/internal/smb1/com/SmbComClose.java

         */
        @Override
        public SmbComBlankResponse initResponse(final CIFSContext tc) {
            final SmbComBlankResponse resp = new SmbComBlankResponse(tc.getConfig());
            setResponse(resp);
            return resp;
        }
    
        @Override
        protected int writeParameterWordsWireFormat(final byte[] dst, int dstIndex) {
            SMBUtil.writeInt2(this.fid, dst, dstIndex);
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  7. cmd/etcd.go

    	timeoutCtx, cancel := context.WithTimeout(ctx, defaultContextTimeout)
    	defer cancel()
    	resp, err := client.Get(timeoutCtx, key)
    	if err != nil {
    		etcdLogOnceIf(ctx, err, "etcd-retrieve-keys")
    		return nil, etcdErrToErr(err, client.Endpoints())
    	}
    	if resp.Count == 0 {
    		return nil, errConfigNotFound
    	}
    	for _, ev := range resp.Kvs {
    		if string(ev.Key) == key {
    			return ev.Value, nil
    		}
    	}
    Created: Sun Dec 28 19:28:13 GMT 2025
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 2.9K bytes
    - Click Count (0)
  8. src/main/java/jcifs/smb/SIDCacheImpl.java

                    final rpc.unicode_string ustr = rpc.domains.domains[resp.sid_index].name;
                    out.domainName = new UnicodeString(ustr, false).toString();
                    break;
                }
    
                final UnicodeString ucstr = new UnicodeString(resp.name, false);
                out.acctName = ucstr.toString();
                out.type = resp.sid_type;
                out.origin_server = null;
                out.origin_ctx = null;
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Mon Aug 25 14:34:10 GMT 2025
    - 13.6K bytes
    - Click Count (0)
  9. src/main/java/jcifs/smb/SpnegoContext.java

            SpnegoToken resp;
            if (this.completed) {
                throw new CIFSException("Already complete");
            }
            if (len == 0) {
                resp = initialToken();
            } else {
                resp = negotitate(inputBuf, offset, len);
            }
    
            if (resp == null) {
                return null;
            }
            return resp.toByteArray();
        }
    
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.5K bytes
    - Click Count (0)
  10. src/test/java/jcifs/internal/smb2/tree/Smb2TreeConnectResponseTest.java

        void testConstructorWithConfiguration() {
            // Given & When
            Smb2TreeConnectResponse resp = new Smb2TreeConnectResponse(mockConfig);
    
            // Then
            assertNotNull(resp);
            assertTrue(resp instanceof ServerMessageBlock2Response);
            assertTrue(resp instanceof ServerMessageBlock2);
            assertTrue(resp instanceof TreeConnectResponse);
        }
    
        @Test
    Created: Sat Dec 20 13:44:44 GMT 2025
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 19.3K bytes
    - Click Count (0)
Back to Top