-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix buffer option related condition which prevents the proxy block to stream a backend response #766 * Fix malformed mime header in test case (byte code) * Fix buffer condition and related body parse in combination with syncedVariables provided by each backend instance * fix test expectation url * Fix random order related to the default block while preparing roundtrips * fix test expectation * Refactor buffer option pkg; include buffer option to json sync calls * increase timeout * increase produce delay; add hint for local var in test * inc time before calling metrics endpoint in metrics test * add changelog #766 * fix metrics test; just one call to metrics ep * (ci) skip metrics test * Fix wrong seq reference; TODO: validation check!
- Loading branch information
Showing
38 changed files
with
703 additions
and
473 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
package server | ||
|
||
import "github.com/avenga/couper/config" | ||
|
||
// SortDefault ensures that default roundtrips are the last item to be able to pipe the origin response body. | ||
func SortDefault[V any](m map[string]V) []string { | ||
idx := -1 | ||
|
||
var trips []string | ||
for k := range m { | ||
trips = append(trips, k) | ||
} | ||
|
||
for i, t := range trips { | ||
if t == config.DefaultNameLabel { | ||
idx = i | ||
break | ||
} | ||
} | ||
edx := len(trips) - 1 | ||
if idx < 0 || edx == 0 || idx == edx { | ||
return trips | ||
} | ||
|
||
trips[idx], trips[edx] = trips[edx], trips[idx] // swap | ||
|
||
return trips | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package attributes | ||
|
||
// common "inline" meta-attributes | ||
const ( | ||
SetReqHeaders = "set_request_headers" | ||
AddReqHeaders = "add_request_headers" | ||
DelReqHeaders = "remove_request_headers" | ||
AddQueryParams = "add_query_params" | ||
DelQueryParams = "remove_query_params" | ||
SetQueryParams = "set_query_params" | ||
AddFormParams = "add_form_params" | ||
DelFormParams = "remove_form_params" | ||
SetFormParams = "set_form_params" | ||
|
||
SetResHeaders = "set_response_headers" | ||
AddResHeaders = "add_response_headers" | ||
DelResHeaders = "remove_response_headers" | ||
|
||
CustomLogFields = "custom_log_fields" | ||
) |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.