Last active
March 2, 2019 07:58
-
-
Save mvodep/32cd29c97b31549c2b9b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Request | |
GET /images/task/1 HTTP/1.1 | |
Host: www.example.org | |
# Response | |
HTTP/1.1 200 OK | |
Content-Type: application/xml;charset=UTF-8 | |
<status xmlns:atom="http://www.w3.org/2005/Atom"> | |
<state>pending</state> | |
<atom:link href="http://www.example.org/images/task/1" rel="self"/> | |
<message xml:lang="en">Your request is currently being processed.</message> | |
<ping-after>2009-09-13T02:09:27Z</ping-after> | |
</status> | |
# Response | |
HTTP/1.1 303 See Other | |
Location: http://www.example.org/images/1 | |
Content-Location: http://www.example.org/images/task/1 | |
<status xmlns:atom="http://www.w3.org/2005/Atom"> | |
<state>done</state> | |
<atom:link href="http://www.example.org/images/task/1" rel="self"/> | |
<message xml:lang="en">Your request has been processed.</message> | |
</status> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment