D4Science D4Science Don't have a D4Science account? Create one Could not find what you are looking for? Contact us.

Response Data Type

Abstract Type
Properties
name data type constraints description
statusInfo StatusType  
closed boolean required boolean
date number  
headers map of array of object  
allowedMethods array of string  
location string  
length number required int
language string  
cookies map of NewCookie  
lastModified number  
stringHeaders map of array of string  
mediaType MediaType  
links array of Link  
entityTag EntityTag  
metadata map of array of object  
entity object  
status number required int

Example

{
  "statusInfo" : {
    "family" : "INFORMATIONAL",
    "statusCode" : 12345,
    "reasonPhrase" : "..."
  },
  "closed" : true,
  "date" : 12345,
  "headers" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "allowedMethods" : [ "...", "..." ],
  "location" : "...",
  "length" : 12345,
  "language" : "...",
  "cookies" : {
    "property1" : {
      "sameSite" : "LAX",
      "secure" : true,
      "maxAge" : 12345,
      "comment" : "...",
      "httpOnly" : true,
      "expiry" : 12345,
      "path" : "...",
      "domain" : "...",
      "value" : "...",
      "version" : 12345,
      "name" : "..."
    },
    "property2" : {
      "sameSite" : "NONE",
      "secure" : true,
      "maxAge" : 12345,
      "comment" : "...",
      "httpOnly" : true,
      "expiry" : 12345,
      "path" : "...",
      "domain" : "...",
      "value" : "...",
      "version" : 12345,
      "name" : "..."
    }
  },
  "lastModified" : 12345,
  "stringHeaders" : {
    "property1" : [ "...", "..." ],
    "property2" : [ "...", "..." ]
  },
  "mediaType" : {
    "subtype" : "...",
    "type" : "...",
    "wildcardType" : true,
    "wildcardSubtype" : true,
    "parameters" : {
      "property1" : "...",
      "property2" : "..."
    }
  },
  "links" : [ {
    "type" : "...",
    "params" : {
      "property1" : "...",
      "property2" : "..."
    },
    "title" : "...",
    "uri" : "...",
    "rels" : [ "...", "..." ],
    "rel" : "...",
    "uriBuilder" : { }
  }, {
    "type" : "...",
    "params" : {
      "property1" : "...",
      "property2" : "..."
    },
    "title" : "...",
    "uri" : "...",
    "rels" : [ "...", "..." ],
    "rel" : "...",
    "uriBuilder" : { }
  } ],
  "entityTag" : {
    "value" : "...",
    "weak" : true
  },
  "metadata" : {
    "property1" : [ { }, { } ],
    "property2" : [ { }, { } ]
  },
  "entity" : { },
  "status" : 12345
}