Skip to content
This repository has been archived by the owner on Dec 9, 2022. It is now read-only.

Commit

Permalink
feat: golam 핸들링시 원시 request context에 주입
Browse files Browse the repository at this point in the history
  • Loading branch information
2rebi committed Jul 5, 2022
1 parent 0ce6f64 commit f661982
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions golam.go
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,10 @@ func (d *defaultHttpHandler) ServeHTTP(writer http.ResponseWriter, request *http
response: &Resp{
RespHeader: make(http.Header),
},
path: reqPath,
query: request.URL.Query(),
golam: d.golam,
path: reqPath,
query: request.URL.Query(),
golam: d.golam,
primalRequestHTTP: request,
}

r := d.golam.router.FindRoute(reqPath)
Expand Down Expand Up @@ -239,8 +240,9 @@ func (g *Golam) handleAPIGatewayToLambdaV2(ctx context.Context, request events.A
response: &Resp{
RespHeader: make(http.Header),
},
path: request.RequestContext.HTTP.Path,
golam: g,
path: request.RequestContext.HTTP.Path,
golam: g,
primalRequestLambda: &request,
}

ctxImpl.query, _ = url.ParseQuery(request.RawQueryString)
Expand Down

0 comments on commit f661982

Please sign in to comment.