1
0
mirror of https://github.com/jhillyerd/inbucket.git synced 2025-12-19 10:37:01 +00:00

ui: Initial impl of seen message marking

This commit is contained in:
James Hillyerd
2018-11-04 10:40:00 -08:00
parent 523c04a522
commit 7dade7f0e4
3 changed files with 107 additions and 7 deletions

View File

@@ -16,6 +16,19 @@ delete url =
}
patch : String -> Http.Body -> Http.Request ()
patch url body =
Http.request
{ method = "PATCH"
, headers = []
, url = url
, body = body
, expect = Http.expectStringResponse (\_ -> Ok ())
, timeout = Nothing
, withCredentials = False
}
errorString : Http.Error -> String
errorString error =
case error of