Skip to content

Set Content-Type Node

Web/API/Request

Set Content-Type

Sets the Content-Type header of a http request

http_set_content_typeweb
Inputs2
Outputs1
Security exposure10/10
Packageweb

Ratings

Scores range from 0 to 10. Higher values mean more impact, exposure, or operational weight.

No score metadata has been set for this node yet.

Input Pins

2

Request

Struct
request

The http request

HttpRequestHttpRequest4 fields
urlstringrequired
methodMethodrequired
enum "GET", "POST", "PUT", "DELETE"...
headersobject | null
*stringmap value
bodyanyOf (2)
variant 1HttpBodyvariant
variant 1Array<integer:uint8>variant
itemsinteger:uint8array item
format uint8min 0max 255
variant 2stringvariant
variant 2nullvariant
Schema enforced

Content-Type

String
content_type

The content type value

Default application/json

Output Pins

1

Request

Struct
request_out

The http request

HttpRequestHttpRequest4 fields
urlstringrequired
methodMethodrequired
enum "GET", "POST", "PUT", "DELETE"...
headersobject | null
*stringmap value
bodyanyOf (2)
variant 1HttpBodyvariant
variant 1Array<integer:uint8>variant
itemsinteger:uint8array item
format uint8min 0max 255
variant 2stringvariant
variant 2nullvariant

Node Info

Internal name
http_set_content_type
Category
Web/API/Request