HTTPExpr contains the API level HTTP specific expressions.
| 7 | type ( |
| 8 | // HTTPExpr contains the API level HTTP specific expressions. |
| 9 | HTTPExpr struct { |
| 10 | // Path is the common request path prefix to all the service |
| 11 | // HTTP endpoints. |
| 12 | Path string |
| 13 | // Params defines the HTTP request path and query parameters |
| 14 | // common to all the API endpoints. |
| 15 | Params *MappedAttributeExpr |
| 16 | // Headers defines the HTTP request headers common to to all |
| 17 | // the API endpoints. |
| 18 | Headers *MappedAttributeExpr |
| 19 | // Cookies defines the HTTP request cookies common to to all |
| 20 | // the API endpoints. |
| 21 | Cookies *MappedAttributeExpr |
| 22 | // Consumes lists the mime types supported by the API |
| 23 | // controllers. |
| 24 | Consumes []string |
| 25 | // Produces lists the mime types generated by the API |
| 26 | // controllers. |
| 27 | Produces []string |
| 28 | // Services contains the services created by the DSL. |
| 29 | Services []*HTTPServiceExpr |
| 30 | // Errors lists the error HTTP responses. |
| 31 | Errors []*HTTPErrorExpr |
| 32 | // SSE contains the Server-Sent Events configuration for all |
| 33 | // streaming endpoints in the API. |
| 34 | SSE *HTTPSSEExpr |
| 35 | } |
| 36 | ) |
| 37 | |
| 38 | // HTTPWildcardRegex is the regular expression used to capture path |
nothing calls this directly
no outgoing calls
no test coverage detected