Uses of Class
com.trafficparrot.sdk.http.TransformedRequest
Packages that use TransformedRequest
Package
Description
HTTP extensions: the base classes of the two kinds of HTTP response transformer,
HttpResponseDefinitionTransformer and
HttpResponseTransformer, and the classes that, with HTTP response templating off,
change the request a proxied mapping sends to the backend.-
Uses of TransformedRequest in com.trafficparrot.sdk.http
Methods in com.trafficparrot.sdk.http that return TransformedRequestModifier and TypeMethodDescriptionstatic TransformedRequestTransformedRequest.fromBase64(com.github.tomakehurst.wiremock.http.Request template, String base64Body) A copy of a request whose body is the bytes this Base64 text decodes to.static TransformedRequestTransformedRequest.fromBytes(com.github.tomakehurst.wiremock.http.Request template, byte[] bytes) A copy of a request with these bytes as its body.static TransformedRequestTransformedRequest.fromJson(com.github.tomakehurst.wiremock.http.Request template, String jsonString) A copy of a request with this text as its body.static TransformedRequestTransformedRequest.like(com.github.tomakehurst.wiremock.http.Request request) A copy of a request: its URL, method, client IP, headers, cookies, parts and protocol, and its body as text.TransformedRequest.withHeader(com.github.tomakehurst.wiremock.http.HttpHeader header) A copy of this request with a header added.TransformedRequest.withTransformBody(TransformedRequest.BodyTransformer bodyTransformer) A copy of this request with its body changed.