Skip to content

Commit

Permalink
add X-Context header field. Closes #657
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed May 11, 2018
1 parent 575a784 commit 0f2b6ea
Showing 1 changed file with 21 additions and 22 deletions.
43 changes: 21 additions & 22 deletions internal/proxy/event_test.go
Expand Up @@ -240,7 +240,7 @@ func ExampleInput_get() {
json.Unmarshal([]byte(getEvent), &in)
output(in)
// Output:
// {
// {
// "HTTPMethod": "GET",
// "Headers": {
// "Accept": "*/*",
Expand Down Expand Up @@ -273,27 +273,26 @@ func ExampleInput_get() {
// "env": "prod"
// },
// "RequestContext": {
// "APIID": "iwcgwgigca",
// "ResourceID": "jcl9w3",
// "RequestID": "344b184b-5cfc-11e7-8483-27dbb2d30a77",
// "HTTPMethod": "GET",
// "ResourcePath": "/{proxy+}",
// "AccountID": "111111111",
// "Stage": "prod",
// "Identity": {
// "APIKey": "",
// "AccountID": "",
// "UserAgent": "curl/7.48.0",
// "SourceIP": "207.102.57.26",
// "AccessKey": "",
// "Caller": "",
// "User": "",
// "UserARN": "",
// "CognitoIdentityID": "",
// "CognitoIdentityPoolID": "",
// "CognitoAuthenticationType": "",
// "CognitoAuthenticationProvider": ""
// }
// "apiId": "iwcgwgigca",
// "resourceId": "jcl9w3",
// "requestId": "344b184b-5cfc-11e7-8483-27dbb2d30a77",
// "accountId": "111111111",
// "stage": "prod",
// "identity": {
// "apiKey": "",
// "accountId": "",
// "userAgent": "curl/7.48.0",
// "sourceIp": "207.102.57.26",
// "accessKey": "",
// "caller": "",
// "user": "",
// "userARN": "",
// "cognitoIdentityId": "",
// "cognitoIdentityPoolId": "",
// "cognitoAuthenticationType": "",
// "cognitoAuthenticationProvider": ""
// },
// "authorizer": null
// }
// }
}
Expand Down

0 comments on commit 0f2b6ea

Please sign in to comment.