Merge pull request #198 from ruv/patch-1

Add documentation about HTTP Hooks status code
This commit is contained in:
Marius 2018-07-16 17:51:03 +02:00 committed by GitHub
commit 93d83ebdd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -99,6 +99,9 @@ $ tusd --hooks-http http://localhost:8081/write
Note that the URL must include the `http://` prefix! Note that the URL must include the `http://` prefix!
In case of a blocking hook, HTTP Status Code 400 or greater tells tusd to reject the request (in the same way as non-zero exit code for File Hooks). See also [issue #170](https://github.com/tus/tusd/issues/170) regarding further improvements.
### Usage ### Usage
Tusd will issue a `POST` request to the specified URL endpoint, specifying the hook name, such as pre-create or post-finish, in the `Hook-Name` header and following body: Tusd will issue a `POST` request to the specified URL endpoint, specifying the hook name, such as pre-create or post-finish, in the `Hook-Name` header and following body: