diff options
author | Teddy Wing | 2018-11-10 23:49:20 +0100 |
---|---|---|
committer | Teddy Wing | 2018-11-10 23:49:20 +0100 |
commit | 86e5b666e5fea3e037734f8aacb0537a365518ab (patch) | |
tree | cac20aadfaa38919c37f76af9aa7d6d6352b2cbd /license-generator/src/lib.rs | |
parent | 20f7a268cce05cd63842adbc7a5d05d4d4cc5bc7 (diff) | |
download | dome-key-web-86e5b666e5fea3e037734f8aacb0537a365518ab.tar.bz2 |
main(): Set up HTTP responses
* If no `REQUEST_METHOD` is found, send a 500 error
* If the `REQUEST_METHOD` is not "POST", send a 405
* If POST params could not be read from stdin, send 500
* If an error occurred during request verification, send 500
* If the request didn't pass verification, send 403
* Otherwise send 200
Diffstat (limited to 'license-generator/src/lib.rs')
-rw-r--r-- | license-generator/src/lib.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/license-generator/src/lib.rs b/license-generator/src/lib.rs index bf3ed57..407097a 100644 --- a/license-generator/src/lib.rs +++ b/license-generator/src/lib.rs @@ -14,3 +14,4 @@ pub mod database; pub mod errors; pub mod purchaser; pub mod request; +pub mod response; |