Package io.fabric8.mockwebserver.http
Class RecordedRequest
- java.lang.Object
-
- io.fabric8.mockwebserver.http.RecordedRequest
-
public class RecordedRequest extends Object
-
-
Constructor Summary
Constructors Constructor Description RecordedRequest(String httpVersion, HttpMethod method, String path, Headers headers, Buffer body)RecordedRequest(String requestLine, Headers headers, List<Integer> chunkSizes, long bodySize, Buffer body, int sequenceNumber, Socket socket)Deprecated.use the non-deprecated constructor instead.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BuffergetBody()Returns the body of this POST request.StringgetHeader(String key)HeadersgetHeaders()StringgetHttpVersion()StringgetMethod()Compatibility layer for OkHttpStringgetPath()StringgetRequestLine()StringgetUtf8Body()HttpMethodmethod()StringtoString()
-
-
-
Constructor Detail
-
RecordedRequest
public RecordedRequest(String httpVersion, HttpMethod method, String path, Headers headers, Buffer body)
-
-
Method Detail
-
getRequestLine
public String getRequestLine()
-
getPath
public String getPath()
-
getMethod
public String getMethod()
Compatibility layer for OkHttp- Returns:
- a String with the HTTP method.
-
method
public HttpMethod method()
-
getHttpVersion
public String getHttpVersion()
-
getBody
public Buffer getBody()
Returns the body of this POST request.
-
getUtf8Body
public String getUtf8Body()
-
getHeaders
public Headers getHeaders()
-
-