Re: [fetch] Introduce convenience property for request's context (#93)

Another attempt...


```
Request {
    // What type is the resource?
    enum ResourceType {
        document,
        font,          
        stylesheet,    
        script,        
        image,         
        video,         
        audio,
        track,
        object,        
        any
    },

    // How the content will be used?
    // ... consumer? receiver? 
    enum Initiator {
  link-prefetch,
  link-preload,
  link-prerender,
  link-import,
  script,
  style,
  img,
  picture,
  ...,

        beacon,
        form,
        hyperlink,
        location,
        ...
 }

    // What context initiated the request? Maybe?
    enum ??? {
        plugin,
        parser,
        style,
        script,
        worker,
        sharedworker,
        serviceworker
    }
}
```



---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/fetch/issues/93#issuecomment-126504686

Received on Thursday, 30 July 2015 21:57:19 UTC