
//assuming you've already created your httprequest object httpresponse res = http.send (req); //get the list of header names (keys) string [] headerkeys = res.getHeaderKeys (); //create an object to store your header key-value pairs Map<string, string> headers = new map<string, string> (); //iterate through they keys, and populate your map for (string s : headerkeys) { headers.put (s,res.getHeader (s)); system.debug ('header: ' + s + ' value: ' + res.getHeader (s)); }
Full Answer
How do I add a heading in Salesforce?
From Setup, enter Self-Service Portal in the Quick Find box, then select Settings. Click Edit next to the Page Header or Page Footer listed in the Portal Page Sections. Check Show Header or Show Footer to display a header or footer on your portal pages.
How do I change the header in Salesforce?
First, as usual start with the edit page (gear icon) in upper right. From here, click on the header portion of the preview, which gives you options on the right for the layout. As it says, it's controlled via the compact layouts (those little pages when you hover over the recent items).
How do I add a community header in Salesforce?
Add CMS Header and Footer Components to Your CommunityFrom Community Builder, go to Settings.Click CMS Connect.Select a header source and enter a header path.
How do I create a footer in Salesforce?
Implement Header and Footer RulesClick the Admin tab.Click Edit on Account Settings.Set your header and footer. Click System Default to insert the standard header and footer information, including all legal requirements for a marketing email send. ... Click Save.
How do I add a header to a page layout in Salesforce?
Custom Objects in the Classic UIGo to Setup.Click Create | Objects | Object Name | Page Layouts | Click Edit beside the desired page layout.Select Fields in the palette.Find Section in the first column, then drag and drop it on the page layout.Enter your desired name on the Section Name field.Click OK.Click Save.
How do you customize the client record Detail page?
Customize the Client Record PageClick. ... In the Quick Find box, enter lightning app , then select Lightning App Builder.Next to the Client Record page, click Clone.Click Relationships in the body of the client record page.More items...
What is global header menu in Salesforce?
The global header is the anchor for the Salesforce platform and spans all other parts of the UI. The functionality in the header is applicable across all contexts in the Salesforce ecosystem (internal or 3rd party).
How do I add a header and footer in a VF page?
All you need to do is using
How do I change the header logo in Salesforce?
Click Settings.To select a logo, click the Logo field (1), and navigate to the image file that you want to use.To select a banner for the Today page, click the Today Page Banner field (2), and navigate to the image file that you want to use.Click Publish (3).Click Publish again in the confirmation window.
How do I add a footer in Salesforce lightning?
Add a Page FooterWhat You'll Do. Add a footer to your page.Step 1: Add a Footer. Last but not least, let's add a footer in the form of another Grid System component. Insert the following code between the