Google Apps Script API
    Preparing search index...
    interface URLFetchRequest {
        contentType?: string;
        escaping?: boolean;
        followRedirects?: boolean;
        headers?: HttpHeaders;
        method?: HttpMethod;
        muteHttpExceptions?: boolean;
        payload?: Payload;
        url: string;
        useIntranet?: boolean;
        validateHttpsCertificates?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    contentType?: string

    the content type (defaults to 'application/x-www-form-urlencoded'). Another example of content type is 'application/xml; charset=utf-8'.

    escaping?: boolean

    if this is set to false, reserved characters in the URL will not be escaped (default: true)

    followRedirects?: boolean

    if this is set to false, the fetch not automatically follow HTTP redirects; it will return the original HTTP response. The default is true.

    headers?: HttpHeaders

    a JavaScript key/value map of HTTP headers for the request

    method?: HttpMethod

    the HTTP method for the request: get, delete, patch, post, or put. The default is get.

    muteHttpExceptions?: boolean

    if this is set to true, the fetch will not throw an exception if the response code indicates failure, and will instead return the HTTPResponse (default: false)

    payload?: Payload

    the payload (e.g. POST body) for the request. Certain HTTP methods (e.g. GET) do not accept a payload. It can be a string, a byte array, or a JavaScript object. A JavaScript object will be interpretted as a map of form field names to values, where the values can be either strings or blobs.

    url: string
    useIntranet?: boolean

    Deprecated. This instructs fetch to resolve the specified URL within the intranet linked to your domain through (deprecated) SDC

    validateHttpsCertificates?: boolean

    if this is set to false, the fetch will ignore any invalid certificates for HTTPS requests. The default is true.