Skip to content

Commit

Permalink
Merge pull request #37 from G-Core/feature/CDN-6180_add_force_return_…
Browse files Browse the repository at this point in the history
…option

CDN-6180 add force_return option
  • Loading branch information
freenoth authored May 22, 2023
2 parents b09c0e5 + c4754ae commit a189e4e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gcore/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ type Options struct {
WebSockets *WebSockets `json:"websockets"`
TLSVersions *TLSVersions `json:"tls_versions"`
UseRSALECert *UseRSALECert `json:"use_rsa_le_cert"`
ForceReturn *ForceReturn `json:"force_return"`
}

type EdgeCacheSettings struct {
Expand Down Expand Up @@ -125,3 +126,9 @@ type UseRSALECert struct {
Enabled bool `json:"enabled"`
Value bool `json:"value"`
}

type ForceReturn struct {
Enabled bool `json:"enabled"`
Code int `json:"code"`
Body string `json:"body"`
}

0 comments on commit a189e4e

Please sign in to comment.