Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for RemoteAddress (0.21 sec)

  1. container-tests/src/test/java/okhttp3/containers/BasicProxyTest.kt

      @Test
      fun testOkHttpProxied() {
        testRequest {
          it.withProxyConfiguration(ProxyConfiguration.proxyConfiguration(ProxyConfiguration.Type.HTTP, it.remoteAddress()))
    
          val client =
            OkHttpClient.Builder()
              .proxy(Proxy(Proxy.Type.HTTP, it.remoteAddress()))
              .build()
    
          val response =
            client.newCall(
              Request((mockServer.endpoint + "/person?name=peter").toHttpUrl()),
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/SocketConnection.java

            } catch (ClassNotFoundException e) {
                throw new RecoverableMessageIOException(String.format("Could not read message from '%s'.", remoteAddress), e);
            } catch (IOException e) {
                throw new RecoverableMessageIOException(String.format("Could not read message from '%s'.", remoteAddress), e);
            } catch (Throwable e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/inet/TcpOutgoingConnector.java

            SocketAddress localAddress = socket.getLocalSocketAddress();
            SocketAddress remoteAddress = socket.getRemoteSocketAddress();
            if (localAddress.equals(remoteAddress)) {
                LOGGER.debug("Detected that socket was bound to {} while connecting to {}. This looks like the socket connected to itself.",
                    localAddress, remoteAddress);
                return true;
            }
            return false;
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 05 19:36:14 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  4. mockwebserver/src/test/java/mockwebserver3/RecordedRequestTest.kt

      }
    
      private class FakeSocket(
        private val localAddress: InetAddress,
        private val localPort: Int,
        private val remoteAddress: InetAddress = localAddress,
        private val remotePort: Int = 1234,
      ) : Socket() {
        override fun getInetAddress() = remoteAddress
    
        override fun getLocalAddress() = localAddress
    
        override fun getLocalPort() = localPort
    
        override fun getPort() = remotePort
      }
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  5. security/pkg/server/ca/authenticate/xfcc_authenticator.go

    	return XfccAuthenticatorType
    }
    
    // Authenticate extracts identities from Xfcc Header.
    func (xff XfccAuthenticator) Authenticate(ctx security.AuthContext) (*security.Caller, error) {
    	remoteAddr := ctx.RemoteAddress()
    	xfccHeader := ctx.Header(xfccparser.ForwardedClientCertHeader)
    	if len(remoteAddr) == 0 || len(xfccHeader) == 0 {
    		return nil, fmt.Errorf("caller from %s does not have Xfcc header", remoteAddr)
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 17:05:56 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. platforms/core-runtime/messaging/src/test/groovy/org/gradle/internal/remote/internal/inet/TcpConnectorTest.groovy

            connection.receive()
    
            then:
            MessageIOException e = thrown()
            e.message == "Could not read message from '${connection.remoteAddress}'."
            e.cause == failure
    
            cleanup:
            connection?.stop()
            acceptor?.stop()
        }
    
        @Issue("GRADLE-2316")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 10.4K bytes
    - Viewed (0)
  7. pkg/security/security.go

    )
    
    type AuthContext struct {
    	// grpc context
    	GrpcContext context.Context
    	// http request
    	Request *http.Request
    }
    
    // RemoteAddress returns the authenticated remote address from AuthContext.
    func (ac *AuthContext) RemoteAddress() string {
    	if ac.GrpcContext != nil {
    		return GetConnectionAddress(ac.GrpcContext)
    	} else if ac.Request != nil {
    		return ac.Request.RemoteAddr
    	}
    	return ""
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 19.1K bytes
    - Viewed (0)
Back to top