Download OpenAPI specification:Download
This is a webfakes web app for HTTP testing in R packages. It implements the https://httpbin.org API
Basic authentication with specified user and password
user required | string User name. |
password required | string Password. |
Authorization | string Base64 encoded user name and password. See https://en.wikipedia.org/wiki/Basic_access_authentication#Client_side for the protocol. |
{- "authenticated": true,
- "user": "Aladdin"
}
Digest authentication with specified user and password
qop required | string Quality of protection, possible values are |
user required | string User name. |
passwd required | string Password. |
require_cookie | any Whether to require cookie handling for a successful authentication.
Set to |
Authorization | string Digest authentication header. See https://en.wikipedia.org/wiki/Digest_access_authentication for the details. |
{- "authenticated": true,
- "user": "Aladdin"
}
Digest authentication with specified user and password, and algorithm.
qop required | string Quality of protection, possible values are |
user required | string User name. |
passwd required | string Password. |
algorithm required | string Hashing algorithm to use: |
require_cookie | any Whether to require cookie handling for a successful authentication.
Set to |
Authorization | string Digest authentication header. See https://en.wikipedia.org/wiki/Digest_access_authentication for the details. |
{- "authenticated": true,
- "user": "Aladdin"
}
Digest authentication with specified user, password and algorithm, with a stale_after value.
qop required | string Quality of protection, possible values are |
user required | string User name. |
passwd required | string Password. |
algorithm required | string Hashing algorithm to use: |
stale_after required | string How many requests are allowed. This is stored in a cookie. |
require_cookie | any Whether to require cookie handling for a successful authentication.
Set to |
Authorization | string Digest authentication header. See https://en.wikipedia.org/wiki/Digest_access_authentication for the details. |
{- "authenticated": true,
- "user": "Aladdin"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
. See
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes for more
about status codes.
status required | integer Status code. |
Assumes the specified etag
parameter as the ETag
header.
If-None-Match
header, then
it returns with HTTP status code 304.If-Match
header is supplied, then it return with
HTTP status code 412.See https://en.wikipedia.org/wiki/HTTP_ETag for more about ETag
headers.
etag required | string Assumed ETag value. |
{- "args": { },
- "headers": { },
- "origin": "string",
- "path": "string",
- "url": "string"
}
Wait for the specified number of seconds before sending the response.
secs required | number Number of seconds, fractions are supported. |
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
Drip the specified number of bytes over the specified number of seconds, potentially after some initial delay.
duration | number Default: 2 Number of seconds for the whole response. |
numbytes | integer Default: 10 Number of bytes to return. |
code | integer Default: 200 HTTP status code to return with. |
delay | number Default: 0 Initial delay, in seconds. Zero means no delay. |
Streams n random bytes generated with given seed, at given chunk size per packet.
n required | integer Number of bytes, maximum 102400. |
seed | number Default: 42 Random seed. |
chunk-size | integer Default: 10240 Size of a chunked for the chunked encoding. The last chunk migh be shorter than his. |
Send only part of the response, after a Range
header.
n required | integer Number of bytes, maximum 102400. |
chunk_size | number Default: 10240 Chunk size, if |
duration | number Default: 0 Duration for the total response. It applies to the full response size without ranges. |
It selects the format according to the Accept
request header.
Supported formats: image/jpeg
, image/png
, image/svg+xml
,
image/webp
, image/*
.
Accept | string Accepted image content type. |
{- "message": "Client did not request a supported media type.",
- "accept": [
- "image/jpeg",
- "image/png",
- "image/svg+xml",
- "image/webp"
]
}
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
See https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#3xx_Redirection
for details.
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
url | string URL to redirect to. |
status_code | integer Default: 302 HTTP status code to use for the redirection. |
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}
This endpoint works for these other HTTP verbs as well, the same
way as for GET
: CONNECT
, DELETE
, HEAD
, MKCOL
, OPTIONS
,
PATCH
, POST
, PROPFIND
, PUT
, REPORT
.
{- "args": { },
- "data": { },
- "files": { },
- "form": { },
- "headers": { },
- "json": { },
- "method": "string",
- "path": "string",
- "origin": "string",
- "url": "string"
}