Uses of Class
org.mockserver.model.ConnectionOptions
-
Packages that use ConnectionOptions Package Description org.mockserver.model org.mockserver.serialization.java org.mockserver.serialization.model -
-
Uses of ConnectionOptions in org.mockserver.model
Methods in org.mockserver.model that return ConnectionOptions Modifier and Type Method Description static ConnectionOptionsConnectionOptions. connectionOptions()ConnectionOptionsHttpResponse. getConnectionOptions()ConnectionOptionsConnectionOptions. withCloseSocket(Boolean closeSocket)Override whether the socket is closed after a response is sent: if true the socket will always be closed, if false the socket will never be closed, if not set the socket will be closed unless the request received is HTTP 1.1 and contains a "Connection" header with a value of "keep-alive"ConnectionOptionsConnectionOptions. withContentLengthHeaderOverride(Integer contentLengthHeaderOverride)Override the "Content-Length" header with the specified amount, if not set the "Content-Length" header will have a value determined by the length of the bodyConnectionOptionsConnectionOptions. withKeepAliveOverride(Boolean keepAliveOverride)Override the "Connection" header: if true the "Connection" header is specified with a value of "keep-alive" if false the "Connection" header is specified with a value of "close" if not set the "Connection" header will have a a value of "close" unless the request received is HTTP 1.1 and contains a "Connection" header with a value of "keep-alive"ConnectionOptionsConnectionOptions. withSuppressConnectionHeader(Boolean suppressConnectionHeader)Prevent a "Connection" header from being added to the responseConnectionOptionsConnectionOptions. withSuppressContentLengthHeader(Boolean suppressContentLengthHeader)Prevent a "Content-Length" header from being added to the responseMethods in org.mockserver.model with parameters of type ConnectionOptions Modifier and Type Method Description HttpResponseHttpResponse. withConnectionOptions(ConnectionOptions connectionOptions)The connection options for override the default connection behaviour, this allows full control of headers such as "Connection" or "Content-Length" or controlling whether the socket is closed after the response has been sent -
Uses of ConnectionOptions in org.mockserver.serialization.java
Methods in org.mockserver.serialization.java with parameters of type ConnectionOptions Modifier and Type Method Description StringConnectionOptionsToJavaSerializer. serialize(int numberOfSpacesToIndent, ConnectionOptions connectionOptions) -
Uses of ConnectionOptions in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return ConnectionOptions Modifier and Type Method Description ConnectionOptionsConnectionOptionsDTO. buildObject()Constructors in org.mockserver.serialization.model with parameters of type ConnectionOptions Constructor Description ConnectionOptionsDTO(ConnectionOptions connectionOptions)
-