---
title: "Codeunit 2354 Http Content"
author: "Jonas Paprotka"
url: https://jonas-paprotka.de/ref/codeunit/2354-http-content/
type: codeunit
id: 2354
name: "Http Content"
app: "System Application"
namespace: System.RestClient
versions: "23-28"
build: 28.5.54151.54365
source: "https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/24/ https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/25/ https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/26/ https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/27/ https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/28/ https://jonas-paprotka.de/ref/codeunit/2354-http-content/source/29/"
checked: 2026-09-20
subject: "Microsoft Dynamics 365 Business Central"
license: "Content © 2026 Jonas Paprotka. Quote freely with attribution and a link."
---

# Codeunit 2354 Http Content

Jonas Paprotka, https://jonas-paprotka.de/ref/codeunit/2354-http-content/

| | |
| --- | --- |
| App | System Application |
| Namespace | System.RestClient |
| Versions | 23-28 |
| Source file | Rest Client/src/HttpContent.Codeunit.al |

## Procedures

| Name | Parameters | Returns | Access | Versions | Obsolete | Reason |
| --- | --- | --- | --- | --- | --- | --- |
| Create | (Text) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (SecretText) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (Text, Text) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (SecretText, Text) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (JsonObject) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (JsonArray) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (JsonToken) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (XmlDocument) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (Codeunit Temp Blob) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (Codeunit Temp Blob, Text) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (InStream) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (InStream, Text) | Codeunit Http Content | public | 23-28 | - | - |
| Create | (HttpContent) | Codeunit Http Content | public | 23-28 | - | - |
| SetContentTypeHeader | (Text) | - | public | 23-28 | - | - |
| AddContentEncoding | (Text) | - | public | 23-28 | - | - |
| SetHeader | (Text, Text) | - | public | 23-28 | - | - |
| SetHeader | (Text, SecretText) | - | public | 23-28 | - | - |
| GetHttpContent | () | HttpContent | public | 23-28 | - | - |
| AsText | () | Text | public | 23-28 | - | - |
| AsSecretText | () | SecretText | public | 23-28 | - | - |
| AsBlob | () | Codeunit Temp Blob | public | 23-28 | - | - |
| AsInStream | () | InStream | public | 23-28 | - | - |
| AsXmlDocument | () | XmlDocument | public | 23-28 | - | - |
| AsJson | () | JsonToken | public | 23-28 | - | - |
| SetContent | (Text, Text) | - | internal | 23-25 | - | - |
| SetContent | (SecretText, Text) | - | internal | 23-25 | - | - |
| SetContent | (InStream, Text) | - | internal | 23-25 | - | - |
| SetContent | (Codeunit Temp Blob, Text) | - | internal | 23-25 | - | - |
| SetContent | (XmlDocument) | - | internal | 23-25 | - | - |
| SetContent | (JsonObject) | - | internal | 23-25 | - | - |
| SetContent | (JsonArray) | - | internal | 23-25 | - | - |
| SetContent | (JsonToken) | - | internal | 23-25 | - | - |
| SetContent | (var HttpContent) | - | internal | 23-25 | - | - |
| SetHttpContentImpl | (Codeunit Http Content Impl.) | - | internal | 23-25 | - | - |
| AsJsonObject | () | JsonObject | public | 26-28 | - | - |
| AsJsonArray | () | JsonArray | public | 26-28 | - | - |

## Source

Symbols: Microsoft.SystemApplication.symbols.63ca2fa4-4f03-4f2b-a480-172fef340d3f, https://dynamicssmb2.pkgs.visualstudio.com/DynamicsBCPublicFeeds/_packaging/MSSymbols/nuget/v3/index.json, highest build per major on 2026-09-20.
AL source 24: https://github.com/microsoft/BCApps, MIT, releases/24.x at fe14d3e6db00d28df3a69c7bba830813d70794e2.
AL source 25: https://github.com/microsoft/BCApps, MIT, releases/25.x at 68d52c129129c83b2e396a473aaa5b2ce61d2eed.
AL source 26: https://github.com/microsoft/BCApps, MIT, releases/26.x at 78c4acf0d64a8eee157ea80164fa8fc2acffc9eb.
AL source 27: https://github.com/microsoft/BCApps, MIT, releases/27.x at 1749020b4c9445a43e4f7f540e89b7fa76ec25fd.
AL source 28: https://github.com/microsoft/BCApps, MIT, releases/28.x at 740f59156b249f8ed7cba2e28423f03ae7b07233.
AL source 29: https://github.com/microsoft/BCApps, MIT, releases/29.x at a66254c3b8b5bb1cea290dc8f9d097aec4381153.

Jonas Paprotka, 2026-09-20.
