Codeunit 2356 "Http Response Message"
System Application · System.RestClient
Across versions
- BC23-25present
- BC268 procedures added
- BC27-30unchanged
Neighbourhood 6 connected objects and pages
System Application · System.RestClient · BC23-30 · source at ea08af5e · facts from BC29
Properties
| Property | Value |
|---|---|
| Access | Public |
Procedures
Create(HttpResponseMessage: HttpResponseMessage): Codeunit "Http Response Message"+ BC26: Initializes a new instance of the HttpResponseMessage class.SetIsBlockedByEnvironment(Value: Boolean): Sets whether the request is blocked by the environment.GetIsBlockedByEnvironment(): Boolean: Gets whether the request is blocked by the environment.SetHttpStatusCode(Value: Integer)GetHttpStatusCode(): Integer: Gets the HTTP status code of the response message.SetIsSuccessStatusCode(Value: Boolean): Sets whether the HTTP response message has a success status code.GetIsSuccessStatusCode(): Boolean: Indicates whether the HTTP response message has a success status code.SetReasonPhrase(Value: Text): Sets the reason phrase which typically is sent by servers together with the status code.GetReasonPhrase(): Text: Gets the reason phrase which typically is sent by servers together with the status code.SetContent(Content: Codeunit "Http Content"): Sets the HTTP content sent back by the server.GetContent(): Codeunit "Http Content": Gets the HTTP content sent back by the server.SetResponseMessage(ResponseMessage: HttpResponseMessage): Sets the HTTP response message.GetResponseMessage(): HttpResponseMessage: Gets the HTTP response message.SetHeaders(Headers: HttpHeaders): Sets the HTTP headers.GetHeaders(): HttpHeaders: Gets the HTTP headers.SetCookies(Cookies: Dictionary of [Text, Cookie])+ BC26: Sets the cookies in the HTTP response message.GetCookies(): Dictionary of [Text, Cookie]+ BC26: Gets the cookies in the HTTP response message.GetCookieNames(): List of [Text]+ BC26: Gets the names of the cookies that are set in the HTTP response message.GetCookie(Name: Text): Cookie+ BC26 + BC26: Gets the cookie with the given name from the HTTP response message.GetCookie(Name: Text; var Cookie: Cookie): Boolean+ BC26 + BC26: Gets the cookie with the given name from the HTTP response message.SetErrorMessage(Value: Text): Sets an error message when the request failed.GetErrorMessage(): Text: Gets the error message when the request failed.SetException(Exception: ErrorInfo)+ BC26: Sets the exception information when the request failed.GetException(): ErrorInfo+ BC26: Gets the exception information when the request failed.
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 2357 “Http Response Message Impl.” (23 calls:
Create → Create,GetContent → GetContent,GetCookie → GetCookie, …)
Called by
- Codeunit 9123 “SharePoint Graph Req. Helper” (20 calls:
DownloadChunk → GetErrorMessage,DownloadChunk → GetHttpStatusCode,DownloadChunk → GetIsSuccessStatusCode, …) - Codeunit 2351 “Rest Client Impl.” (17 calls:
GetAsJson → GetContent,GetAsJson → GetException,GetAsJson → GetIsSuccessStatusCode, …) - Codeunit 9351 “Graph Client Impl.” (6 calls:
Delete → GetIsSuccessStatusCode,GetNextPage → GetIsSuccessStatusCode,GetWithPagination → GetIsSuccessStatusCode, …) - Codeunit 9359 “Graph Pagination Helper” (4 calls:
ExtractNextLink → GetContent,ExtractNextLink → GetIsSuccessStatusCode,ExtractValueArray → GetContent, …) - Codeunit 2360 “Http Client Handler” (1 call:
Send → 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 Response Message"), then bcatlas_get_procedure_body or bcatlas_get_neighbors on the returned id.