MCPcopy
hub / github.com/projectdiscovery/proxify / NewContent

Function NewContent

pkg/swaggergen/content.go:11–19  ·  view source on GitHub ↗

NewContent creates a new content

(res *http.Response)

Source from the content-addressed store, hash-verified

9
10// NewContent creates a new content
11func NewContent(res *http.Response) *Content {
12 var content *Content
13 if res.Body != nil {
14 content = &Content{
15 Schema: NewSchema(res.Body),
16 }
17 }
18 return content
19}
20
21// UpdateContent updates a content
22func (c *Content) UpdateContent(res *http.Response) {

Callers 2

NewResponseFunction · 0.85
UpdateResponseMethod · 0.85

Calls 1

NewSchemaFunction · 0.85

Tested by

no test coverage detected