We found 30 matches for: http connection

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

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
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
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
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
response: redirect

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

In-pins

flow
connection
uri
Redirects to the URL derived from the specified path. Could be back to redirect to the referer.

Out-pins

flow
connection
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 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
get: method

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

In-pins

connection

Out-pins

method
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
body
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
body
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
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
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

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

Out-pins

flow
connection
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.

Out-pins

flow
connection