Add support for each http method
This commit is contained in:
parent
b3e3dfb3f3
commit
1be072f440
6 changed files with 192 additions and 24 deletions
|
@ -57,6 +57,10 @@ class HttpMockServer {
|
|||
if(statusCode){
|
||||
mock.statusCode = Integer.valueOf(statusCode)
|
||||
}
|
||||
String method = request.method
|
||||
if(method){
|
||||
mock.method = method
|
||||
}
|
||||
HttpServerWraper child = childServers.find { it.port == mockPort }
|
||||
if (!child) {
|
||||
child = new HttpServerWraper(mockPort)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue