Codeunit 2354 "Http Content"
System Application · System.RestClient
Across versions
- BC23-25present
- BC2610 procedures removed, 2 procedures added
- BC27-30unchanged
Neighbourhood 5 connected objects and pages
System Application · System.RestClient · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
Create(Content: Text): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified Text content.Create(Content: SecretText): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified SecretText content.Create(Content: Text; ContentType: Text): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified Text content and content type.Create(Content: SecretText; ContentType: Text): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified SecretText content and content type.Create(Content: JsonObject): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified JsonObject content.Create(Content: JsonArray): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified JsonArray content.Create(Content: JsonToken): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified JsonToken content.Create(Content: XmlDocument): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified XmlDocument content.Create(Content: Codeunit "Temp Blob"): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified “Temp Blob” Codeunit content.Create(Content: Codeunit "Temp Blob"; ContentType: Text): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified “Temp Blob” Codeunit content and content type.Create(Content: InStream): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified InStream content.Create(Content: InStream; ContentType: Text): Codeunit "Http Content": Initializes a new instance of the Http Content class with the specified InStream content and content type.Create(Content: HttpContent): Codeunit "Http Content": Initializes a new instance of the Http Content object with the specified HttpContent object.SetContentTypeHeader(ContentType: Text): Sets the Content-Type header of the HttpContent object.AddContentEncoding(ContentEncoding: Text): Sets the Content-Encoding header of the HttpContent object.SetHeader(Name: Text; Value: Text): Sets a new value for an existing header of the HttpContent object, or adds the header if it does not already exist.SetHeader(Name: Text; Value: SecretText): Sets a new value for an existing header of the HttpContent object, or adds the header if it does not already exist.GetHttpContent(): HttpContent: Gets the HttpContent object.AsText(): Text: Gets the content of the HTTP response message as a string.AsSecretText(): SecretText: Gets the content of the HTTP response message as a SecretText.AsBlob(): Codeunit "Temp Blob": Gets the content of the HTTP response message as a “Temp Blob” Codeunit.AsInStream(): InStream: Gets the content of the HTTP response message as an InStream.AsXmlDocument(): XmlDocument: Gets the content of the HTTP response message as an XmlDocument.AsJson(): JsonToken: Gets the content of the HTTP response message as a JsonToken.AsJsonObject(): JsonObject+ BC26: Gets the content of the HTTP response message as a JsonObject.AsJsonArray(): JsonArray+ BC26: Gets the content of the HTTP response message as a JsonArray.
Calls
From the extracted call graph of BC29 (graphify-al on the snapshot checkout): calls whose target is known from a declared type or an Object::"Name" argument. Interface dispatch and calls through events are not counted, so the list is not complete.
- Codeunit 2355 “Http Content Impl.” (13 calls:
AddContentEncoding → AddContentEncoding,AsBlob → AsBlob,AsInStream → AsInStream, …)
Called by
- Codeunit 9123 “SharePoint Graph Req. Helper” (4 calls:
CreateUploadSession → Create,UploadChunk → Create,UploadChunk → SetContentTypeHeader, …) - Codeunit 2351 “Rest Client Impl.” (3 calls:
PatchAsJson → Create,PostAsJson → Create,PutAsJson → Create) - Codeunit 2353 “Http Request Message Impl.” (1 call:
SetContent → GetHttpContent) - Codeunit 2357 “Http Response Message Impl.” (1 call:
SetResponseMessage → Create)
Ask your agent
Procedure bodies are not stored here (D10). The call sections above are our own, per object, from the BC29 call graph. For a procedure body or the calls of one procedure, ask bc-code-atlas (external, by Stefan Maron, MIT; default corpus w1-28), which the bc-observatory plugin connects: bcatlas_resolve_node(object_type: "codeunit", object_name: "Http Content"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.