diff options
Diffstat (limited to '900-implements.yarn')
-rw-r--r-- | 900-implements.yarn | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/900-implements.yarn b/900-implements.yarn index a424cec..208a68f 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -10,7 +10,13 @@ ## HTTP requests IMPLEMENTS WHEN user fetches (\S+) - pass + import yarnhelper + h = yarnhelper.YarnHelper() + server = h.get_variable('SERVER') + url = h.get_next_match() + status, body = h.http_get(server, url) + h.set_variable('http_status', status) + h.set_variable('http_body', body) IMPLEMENTS THEN HTTP status is (\d+) pass |