Uses of Class
org.mockserver.model.ConnectionOptions
Packages that use ConnectionOptions
Package
Description
-
Uses of ConnectionOptions in org.mockserver.model
Methods in org.mockserver.model that return ConnectionOptionsModifier and TypeMethodDescriptionstatic ConnectionOptionsConnectionOptions.connectionOptions()HttpResponse.getConnectionOptions()ConnectionOptions.withChunkDelay(Delay chunkDelay) Specifies the delay between sending each chunk of a chunked response.ConnectionOptions.withChunkSize(Integer chunkSize) Specifies the size of chunks in a response:ConnectionOptions.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"ConnectionOptions.withCloseSocketDelay(Delay closeSocketDelay) Override how long to delay before closing socket, this value is ignored if socket isn't going to be closedConnectionOptions.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 bodyConnectionOptions.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"ConnectionOptions.withSuppressConnectionHeader(Boolean suppressConnectionHeader) Prevent a "Connection" header from being added to the responseConnectionOptions.withSuppressContentLengthHeader(Boolean suppressContentLengthHeader) Prevent a "Content-Length" header from being added to the responseMethods in org.mockserver.model with parameters of type ConnectionOptionsModifier and TypeMethodDescriptionHttpResponse.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 ConnectionOptionsModifier and TypeMethodDescriptionConnectionOptionsToJavaSerializer.serialize(int numberOfSpacesToIndent, ConnectionOptions connectionOptions) -
Uses of ConnectionOptions in org.mockserver.serialization.model
Methods in org.mockserver.serialization.model that return ConnectionOptionsConstructors in org.mockserver.serialization.model with parameters of type ConnectionOptions