Uses of Class
org.mockserver.wasm.WasmRequest
Packages that use WasmRequest
-
Uses of WasmRequest in org.mockserver.wasm
Methods in org.mockserver.wasm that return WasmRequestModifier and TypeMethodDescriptionstatic WasmRequestWasmRequest.fromHttpRequest(HttpRequest request, String body) Build aWasmRequestfrom anHttpRequest, copying its method, path, query-string parameters, headers and cookies, and using the suppliedbody.static WasmRequestConvenience factory for a body-only request (legacy behaviour).WasmRequest.withCookie(String name, String value) Adds a cookie (name to single value).WasmRequest.withHeader(String name, String value) Adds a header value, preserving insertion order and allowing multiple values per name.WasmRequest.withQueryStringParameter(String name, String value) Adds a query-string parameter value, preserving insertion order and allowing multiple values per name (e.g.Methods in org.mockserver.wasm with parameters of type WasmRequestModifier and TypeMethodDescriptionbooleanWasmRuntime.callMatch(WasmRequest request) Call the WASM module with the full request envelope (method, path, headers, body).WasmRuntime.callShape(WasmRequest request, WasmResponse response) Call the module's optionalWasmRuntime.SHAPE_RESPONSEexport to (possibly) rewrite the response the matched expectation would return.