Package org.mockserver.netty.proxy.relay
package org.mockserver.netty.proxy.relay
-
ClassesClassDescriptionOne binary client connection's single upstream connection, and the bytes relayed between the two as they arrive.The proxy client's side of the CONNECT/SOCKS relay's HTTP/2 tunnel, handing each request on once, with its whole body.Answers the proxy client with a
502when the CONNECT/SOCKS relay's HTTP/1.1 loopback fails to decode a response (a corrupt compressed body, one larger thanmaxRequestBodySize, or one the codec marks as failed) before its head has been relayed.Ends the proxy client's HTTP/2 streams at once when the CONNECT/SOCKS relay's HTTP/2 loopback connection closes, for any reason, instead of leaving them to Netty's 30 s graceful-shutdown timeout.Answers the proxy client's HTTP/2 stream when the CONNECT/SOCKS relay's HTTP/2 loopback stream for it ends without a response: the response failed to decode, passedmaxRequestBodySize, or MockServer reset the stream.Gives each request the CONNECT/SOCKS relay writes to its HTTP/2 loopback a loopback stream id of its own, and puts the proxy client's stream id back on the response.On MockServer's side of an HTTP/1.1 relay loopback, after its codec: tells the tunnel's relay what the bytes on the loopback cannot.The local addresses of the loopback connectionsRelayConnectHandleropens to MockServer, each with the proxy client's channel of its tunnel, so the accepting side can tell its own relay's loopback leg from a client that merely sends the samePROXIED_preamble, and can reach the tunnel's other leg.What a relay does with the upstream's reply to one message it forwards: relays it to the client (the default), drops it, or drops it and writes other bytes to the client in its place once it has ended.