public class NettyHttpRequest extends Object implements HttpRequest
| Constructor and Description |
|---|
NettyHttpRequest(io.netty.handler.codec.http.FullHttpRequest request) |
| Modifier and Type | Method and Description |
|---|---|
String |
body()
Returns the full request body.
|
Map<String,Object> |
data()
Returns additional data appended to the request by Selendroid itself.
|
String |
header(String name)
Gets the value of a given header.
|
String |
method()
Returns "GET", "POST", "PUT" or "DELETE".
|
String |
uri()
Returns the request URI.
|
public NettyHttpRequest(io.netty.handler.codec.http.FullHttpRequest request)
public String method()
HttpRequestmethod in interface HttpRequestpublic String uri()
HttpRequesturi in interface HttpRequestpublic String body()
HttpRequestbody in interface HttpRequestpublic String header(String name)
HttpRequestheader in interface HttpRequestpublic Map<String,Object> data()
HttpRequestdata in interface HttpRequestCopyright © 2015. All rights reserved.