- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for rawBody (0.21 sec)
-
pkg/test/echo/response.go
// The cluster where the server is deployed. Cluster string // IstioVersion for the Istio sidecar. IstioVersion string // IP is the requester's ip address IP string // rawBody gives a map of all key/values in the body of the response. rawBody map[string]string RequestHeaders http.Header ResponseHeaders http.Header } // Count occurrences of the given text within the body of this response.
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Mar 01 01:05:45 UTC 2022 - 3.9K bytes - Viewed (0) -
pkg/test/echo/parse.go
if match != nil { out.IstioVersion = match[1] } match = IPFieldRegex.FindStringSubmatch(output) if match != nil { out.IP = match[1] } out.rawBody = map[string]string{} matches := requestHeaderFieldRegex.FindAllStringSubmatch(output, -1) for _, kv := range matches { sl := strings.SplitN(kv[1], ":", 2) if len(sl) != 2 { continue }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 23 22:25:46 UTC 2022 - 4.3K bytes - Viewed (0) -
tests/customize_field_test.go
// Make sure an ignored field does not interfere with another field's custom // column name that matches the ignored field. type CustomColumnAndIgnoredFieldClash struct { Body string `gorm:"-"` RawBody string `gorm:"column:body"` } DB.Migrator().DropTable(&CustomColumnAndIgnoredFieldClash{}) if err := DB.AutoMigrate(&CustomColumnAndIgnoredFieldClash{}); err != nil { t.Errorf("Should not raise error: %v", err)
Registered: Wed Jun 12 16:27:09 UTC 2024 - Last Modified: Fri Sep 11 09:33:31 UTC 2020 - 6.9K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial006.py
from fastapi import FastAPI, Request app = FastAPI() def magic_data_reader(raw_body: bytes): return { "size": len(raw_body), "content": { "name": "Maaaagic", "price": 42, "description": "Just kiddin', no magic here. ✨", }, } @app.post( "/items/", openapi_extra={ "requestBody": { "content": {
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Jul 29 20:01:13 UTC 2021 - 1K bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007.py
"content": {"application/x-yaml": {"schema": Item.model_json_schema()}}, "required": True, }, }, ) async def create_item(request: Request): raw_body = await request.body() try: data = yaml.safe_load(raw_body) except yaml.YAMLError: raise HTTPException(status_code=422, detail="Invalid YAML") try: item = Item.model_validate(data) except ValidationError as e:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:40:57 UTC 2024 - 822 bytes - Viewed (0) -
docs_src/path_operation_advanced_configuration/tutorial007_pv1.py
"content": {"application/x-yaml": {"schema": Item.schema()}}, "required": True, }, }, ) async def create_item(request: Request): raw_body = await request.body() try: data = yaml.safe_load(raw_body) except yaml.YAMLError: raise HTTPException(status_code=422, detail="Invalid YAML") try: item = Item.parse_obj(data) except ValidationError as e:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Jul 07 17:12:13 UTC 2023 - 789 bytes - Viewed (0) -
src/cmd/compile/internal/ir/mini.go
// at a cost of 8 bytes. // // A miniNode is NOT a valid Node by itself: the embedding struct // must at the least provide: // // func (n *MyNode) String() string { return fmt.Sprint(n) } // func (n *MyNode) rawCopy() Node { c := *n; return &c } // func (n *MyNode) Format(s fmt.State, verb rune) { FmtNode(n, s, verb) } // // The embedding struct should also fill in n.op in its constructor,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Aug 31 22:09:44 UTC 2022 - 2.8K bytes - Viewed (0)