can-connect icon indicating copy to clipboard operation
can-connect copied to clipboard

Allow data-url to customize which params are sent as headers ~21

Open justinbmeyer opened this issue 10 years ago • 1 comments
trafficstars

todoConnection(["uses-session"],{
    url: {
        getListData: "GET /todos",
        headers: ["sessionId"]
    }
})

todoConnection.getListData({sessionId: 7, complete: true})

// GET /todos?complete=true
// Headers:
//  sessionId=7

justinbmeyer avatar Nov 23 '15 19:11 justinbmeyer

alternatively, there needs to be an implied reading of session info for all requests.

justinbmeyer avatar Apr 06 '16 01:04 justinbmeyer