Skip to content

Tags: aquasecurity/lmdrouter

Tags

v0.4.5-rc

Bugfix: local HTTP server can't handle base64 responses

The local HTTP server did not check responses for being base64-encoded,
so data was returned as-is. Now responses will be decoded before being
returned when appropriate.

v0.4.4

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #11 from aquasecurity/ido-local-dev

Implement net/http.Handler for local development

servehttp

Implement net/http.Handler for local development

This commit modifies the lmdrouter.Router type to implement the
net/http.Handler interface (meaning the ServeHTTP method is now
available on *lmdrouter.Route objects).

This allows usage of applications using lmdrouter in environments other
than AWS Lambda, but is mostly useful for local development purposes.

It should be noted that this means applications will now have to use the
`netgo` build tag (`go build -tags netgo`) to make sure binaries are
still statically compiled.

Resolves: 1

v0.4.3

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #9 from owenrumney/owenr-add-support-for-comma-sep…

…erated-string

Add support for comma string

v0.4.2

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #8 from liamg/liamg-fix-string-alias-prt-types

Add support for various pointer types

v0.4.1

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #7 from owenrumney/owenr-handle-time

Add support for passing a time pointer

v0.4.0

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
Merge pull request #4 from aquasecurity/ido-route-overlap

[fix #3] overlapping routes may not be matched

v0.3.0

Support optional boolean query parameters (i.e. pointers)

This commit adds support for boolean query parameters that are optional,
meaning their type is `*bool` rather than `bool`. This is useful in
cases where an API must know whether the parameter was actually
provided, even if it was false, and not just received a zero value.

v0.2.0

Bugfix: UnmarshalRequest may misbehave for requests with a body

When a request includes a body, and `UnmarshalRequest` is called with
`body = true`, then the function only unmarshals the JSON body into the
target struct. However, if the target struct also includes fields for
query/path/header parameters (i.e. fields with a "lambda" struct tag),
then they were not parsed.

To fix, the request body will first be unmarshaled into the target
struct, and then the rest of the parameters (if any) will be processed
as well.

0.1.0

Add ability to not expose server errors

This commit adds the ability to not expose HTTP errors whose status code
is 500 or above (i.e. server errors) when the HandleError function is
used. This is done by setting the ExposeServerErrors global variable to
false.

Tests for the HandleError function are also added.