We found 32 matches for: http connection

An overview of all http connection blocks currently available, updated daily!

api: on api post

Exposes POST URI on /api/

In-pins

flow
URI
URI part after /api/, e.g. customers/get/all will become /api/{version}/customers/get/all.
scope
Scope required within the authenticated user scopes to access this API, use `*public` to make this a public API.
version
Version used in the API URI.

Default:
v1
lowercase body
If set to true, we'll automatically lowercase all JSON root-body keys. userName will become username.

Default:
false

Out-pins

flow
On Request
connection
params
body
api: on api file upload

Exposes URI on /api/. Accepts a multipart/form-data POST request and saves the attached file.

In-pins

file size limit
the file size limit in bytes

Default:
5242880 bytes (5MB)

Out-pins

On Request
connection
file
response: reply in JSON

In-pins

flow
connection
code
HTTP Status Code to return on this response.
type
Sets the Content-Type HTTP header.

Default:
application/json
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
data
Object, Array or any type casted to value.
options
Available options: skip_response_body_log

Out-pins

flow
connection
response: reply with xml

In-pins

flow
connection
code
HTTP status code to return on this response.

Default:
200
type
Sets the Content-Type HTTP header.

Default:
text/xml
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
xml
options
Available options: skip_response_body_log

Out-pins

flow
connection
response: redirect

Updates the connection to a new endpoint if the client allows following redirects.

In-pins

flow
connection
code
HTTP Status Code to return on this response. The accepted codes are 301, 302, 307, 308

Default:
302
uri
Redirects to the URL derived from the specified path. Could be back to redirect to the referer.

Out-pins

flow
connection
response: reply with file

In-pins

flow
connection
code
HTTP Status Code to return on this response.
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
file
A blueprint file-type to be returned on this connection.
root
Root directory for relative filenames. Access to files will be restricted to this folder and its subfolders. Make sure the filepath does not contain the root. This should not be dynamic due to security reasons.
Filepath

Out-pins

flow
connection
validation: fields

Runs the given function per field for easier validation. By default it makes a field required. Function return values can be condition, value (error)

In-pins

flow
connection

Out-pins

flow
connection
valid
Returns true if all valed
fields
All fields that returned an error
errors
All errors as returned by the running functions.
get: is user allowed to all scopes

Returns true if the authenticated user has wildcard (*) scope.

In-pins

connection

Out-pins

is root
get: get user scopes

Returns the authenticated users scope.

In-pins

connection

Out-pins

scopes
get: is authenticated

Returns true if the user is indeed authenticated.

In-pins

connection

Out-pins

authenticated
get: request id

Returns the unique request ID

In-pins

connection

Out-pins

ID
get: cookies all

Returns all set cookies.

In-pins

connection

Out-pins

object
An object with all set cookies
get: headers

Returns all headers known to us in the HTTP request.

In-pins

connection

Out-pins

headers
get: ip

Returns the currently connected user IP.

In-pins

connection

Out-pins

ip
get: query

Returns all query items if present. Query items may be given in the URI like ?query=yes.

In-pins

connection

Out-pins

query
response: write to stream

Writes part of a response to the client. After the whole response has been streamed, we need to call end stream.

In-pins

flow
connection
code
HTTP Status Code to return on this response.
type
Sets the Content-Type HTTP header.

Default:
text/plain
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
Chunk
Writes part of a response to the client. After the whole response has been streamed, we need to call end stream.

Out-pins

flow
connection
get: body

Returns the provided body as object, if the request method is POST or PUT.

In-pins

connection

Out-pins

body
api: On API GET

Exposes GET URI on /api/

In-pins

flow
URI
URI part after /api/, e.g. customers/get/all will become /api/{version}/customers/get/all.
scope
Scope required within the authenticated user scopes to access this API, use `*public` to make this a public API.
version
Version used in the API URI.

Default:
v1

Out-pins

flow
On Request
connection
params
api: on api put

Exposes URI on /api/

In-pins

flow
URI
URI part after /api/, e.g. customers/get/all will become /api/{version}/customers/get/all.
scope
Scope required within the authenticated user scopes to access this API, use `*public` to make this a public API.
version
Version used in the API URI.

Default:
v1
lowercase body
If set to true, we'll automatically lowercase all JSON root-body keys. userName will become username.

Default:
false

Out-pins

flow
On Request
connection
params
body
api: on api delete

Exposes URI on /api/

In-pins

flow
URI
URI part after /api/, e.g. customers/get/all will become /api/{version}/customers/get/all.
scope
Scope required within the authenticated user scopes to access this API, use `*public` to make this a public API.
version
Version used in the API URI.

Default:
v1
lowercase body
If set to true, we'll automatically lowercase all JSON root-body keys. userName will become username.

Default:
false

Out-pins

flow
On Request
connection
params
body
api: on api patch

Exposes URI on /api/

In-pins

flow
URI
URI part after /api/, e.g. customers/get/all will become /api/{version}/customers/get/all.
scope
Scope required within the authenticated user scopes to access this API, use `*public` to make this a public API.
version
Version used in the API URI.

Default:
v1
lowercase body
If set to true, we'll automatically lowercase all JSON root-body keys. userName will become username.

Default:
false

Out-pins

flow
On Request
connection
body
response: reply in text

In-pins

flow
connection
code
HTTP Status Code to return on this response.
type
Sets the Content-Type HTTP header.

Default:
text/plain
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
data

Out-pins

flow
connection
response: reply with xml from json

In-pins

flow
connection
code
HTTP status code to return on this response.

Default:
200
type
Sets the Content-Type HTTP header.

Default:
text/xml
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
XML Root
data
options
Available options: skip_response_body_log

Out-pins

flow
connection
response: set status code

Updates the status code

In-pins

flow
connection
code

Out-pins

flow
connection
response: reply in JSONP

In-pins

flow
connection
code
HTTP Status Code to return on this response.
Headers
Custom HTTP Headers to set, Array of Objects [{ key: Value, value: Value }]
callback
The name of the callback function

Default:
callback

Out-pins

flow
connection
get: method

Returns current HTTP method for this request (e.g. GET, POST, etc).

In-pins

connection

Out-pins

method
get: agent

Returns the currently connected user agent.

In-pins

connection

Out-pins

agent
get: params

Returns all params if present, params are optional or required parameters in API URIs, for example :name.

In-pins

connection

Out-pins

params
response: end writestream

Ends the current open stream with the client.

In-pins

flow
connection

Out-pins

flow
connection
response: timeout

Updates the default connection timeout of 120 seconds

In-pins

flow
connection
seconds
Number of seconds the connection should wait before closing, a number between 1 and 600. We currently do not allow connections to exceed 10 minutes of wait time.

Out-pins

flow
connection