Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
import java.util.HashMap;
import java.util.Map;

public class Main {
    public static Map<String, String> createHeaders() {
        return createHeaders(true);
    }

    public static Map<String, String> createHeaders(boolean includeContentType) {
        Map<String, String> headers = new HashMap<>();
        headers.put("Authorization", "");
        if (includeContentType) {
            headers.put("Content-Type", "application/json;");
        }
        return headers;
    }
}