codeunitAL Developmentofficial - Microsoftderived - from the source, no model text

Codeunit 2350 "Rest Client"

System Application · System.RestClient

Across versions

  1. BC23-25present
  2. BC266 procedures added
  3. BC27-30unchanged

Neighbourhood 6 connected objects and pages

Codeunit 2351 "Rest Client Impl." (calls, 14 links)Rest Client Impl.Codeunit 9354 "Graph Request Helper" (calls, 5 links)Graph Request HelperCodeunit 2515 "AppSource Product Manager" (calls, 3 links)AppSource Product ManagerCodeunit 9123 "SharePoint Graph Req. Helper" (calls, 2 links)SharePoint Graph Req. HelperCodeunit 2518 "AppSrc Product Deps. Provider" (calls)AppSrc Product Deps. ProviderCodeunit 9351 "Graph Client Impl." (calls)Graph Client Impl.

Open in the neighbourhood explorer

One hop out, from the extracted relations and call graph. Up to 40 shown; the sections below list them all.

System Application · System.RestClient · BC23-30 · source at ea08af5e · facts from BC29

Properties

Property Value
Access Public

Procedures

  • Create(): Codeunit "Rest Client" + BC26 + BC26 + BC26 + BC26: Initializes a new instance of the Rest Client class.
  • Create(HttpClientHandler: Interface "Http Client Handler"): Codeunit "Rest Client" + BC26 + BC26 + BC26 + BC26: Initializes a new instance of the Rest Client class.
  • Create(HttpAuthentication: Interface "Http Authentication"): Codeunit "Rest Client" + BC26 + BC26 + BC26 + BC26: Initializes a new instance of the Rest Client class.
  • Create(HttpClientHandler: Interface "Http Client Handler"; HttpAuthentication: Interface "Http Authentication"): Codeunit "Rest Client" + BC26 + BC26 + BC26 + BC26: Initializes a new instance of the Rest Client class.
  • Initialize(): Initializes the Rest Client with the default Http Client Handler and anonymous Http authentication.
  • Initialize(HttpClientHandler: Interface "Http Client Handler"): Initializes the Reest Client with the given Http Client Handler
  • Initialize(HttpAuthentication: Interface "Http Authentication"): Initializes the Rest Client with the given Http Authentication.
  • Initialize(HttpClientHandler: Interface "Http Client Handler"; HttpAuthentication: Interface "Http Authentication"): Initializes the Rest Client with the given Http Client Handler and Http Authentication.
  • SetDefaultRequestHeader(Name: Text; Value: Text): Sets a new value for an existing default header of the Http Client object, or addds the header if it does not already exist.
  • SetDefaultRequestHeader(Name: Text; Value: SecretText): Sets a new value for an existing default header of the Http Client object, or addds the header if it does not already exist.
  • SetBaseAddress(Url: Text): Sets the base address of the Rest Client.
  • GetBaseAddress(): Text: Gets the base address of the Rest Client.
  • SetTimeOut(Timeout: Duration): Sets the timeout of the Rest Client.
  • GetTimeOut(): Duration: Gets the timeout of the Rest Client.
  • AddCertificate(Certificate: Text): Adds a certificate to the Rest Client.
  • AddCertificate(Certificate: Text; Password: SecretText): Adds a certificate to the Rest Client.
  • SetUseServerCertificateValidation(Value: Boolean) + BC26: Sets the use of server certificate validation.
  • SetUserAgentHeader(Value: Text): Sets the user agent header of the Rest Client.
  • SetAuthorizationHeader(Value: SecretText): Sets the authorization header of the Rest Client.
  • SetUseResponseCookies(Value: Boolean) + BC26: Sets the use of response cookies in subsequent requests.
  • Get(RequestUri: Text): Codeunit "Http Response Message": Sends a GET request to the specified Uri and returns the response message.
  • Post(RequestUri: Text; Content: Codeunit "Http Content"): Codeunit "Http Response Message": Sends a POST request to the specified Uri and returns the response message.
  • Patch(RequestUri: Text; Content: Codeunit "Http Content"): Codeunit "Http Response Message": Sends a PATCH request to the specified Uri and returns the response message.
  • Put(RequestUri: Text; Content: Codeunit "Http Content"): Codeunit "Http Response Message": Sends a PUT request to the specified Uri and returns the response message.
  • Delete(RequestUri: Text): Codeunit "Http Response Message": Sends a DELETE request to the specified Uri and returns the response message.
  • GetAsJson(RequestUri: Text): JsonToken: Sends a GET request to the specified Uri and returns the response content as JsonToken.
  • PostAsJson(RequestUri: Text; Content: JsonObject): JsonToken: Sends a POST request to the specified Uri and returns the response content as JsonToken.
  • PostAsJson(RequestUri: Text; Content: JsonArray): JsonToken: Sends a POST request to the specified Uri and returns the response content as JsonToken.
  • PostAsJson(RequestUri: Text; Content: JsonToken): JsonToken: Sends a POST request to the specified Uri and returns the response content as JsonToken.
  • PatchAsJson(RequestUri: Text; Content: JsonObject): JsonToken: Sends a PATCH request to the specified Uri and returns the response content as JsonToken.
  • PatchAsJson(RequestUri: Text; Content: JsonArray): JsonToken: Sends a PATCH request to the specified Uri and returns the response content as JsonToken.
  • PatchAsJson(RequestUri: Text; Content: JsonToken): JsonToken: Sends a PATCH request to the specified Uri and returns the response content as JsonToken.
  • PutAsJson(RequestUri: Text; Content: JsonObject): JsonToken: Sends a PUT request to the specified Uri and returns the response content as JsonToken.
  • PutAsJson(RequestUri: Text; Content: JsonArray): JsonToken: Sends a PUT request to the specified Uri and returns the response content as JsonToken.
  • PutAsJson(RequestUri: Text; Content: JsonToken): JsonToken: Sends a PUT request to the specified Uri and returns the response content as JsonToken.
  • Send(Method: Enum "Http Method"; RequestUri: Text): Codeunit "Http Response Message": Sends a request with the specific Http method and an empty content to the specified Uri and returns the response message.
  • Send(Method: Enum "Http Method"; RequestUri: Text; Content: Codeunit "Http Content"): Codeunit "Http Response Message": Sends a request with the specific Http method and the given content to the specified Uri and returns the response message.
  • Send(var HttpRequestMessage: Codeunit "Http Request Message"): Codeunit "Http Response Message": Sends the given request message and returns the response message.

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.

Called by

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: "Rest Client"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.

Evidence 1 sources