Comments (1)
It seems to work if you either:
- set
fiberCtx.Server().StreamRequestBody = true
- change humafiber BodyReader() to
return bytes.NewReader(c.orig.Body())
. This will handle content encoding (gzip, brotli, deflate) - change humafiber BodyReader() to
return bytes.NewReader(c.orig.Request().PostBody())
. This returns raw bytes
I'm not sure what the right answer is. 2 sounds nice, but 3 might be more consistent with the net/http-like adapter counterparts
from huma.
Related Issues (20)
- Inline schemas still being generated with schema.GenerateInline = false HOT 2
- Allow overriding http status codes from `Resolve` methods
- Operation Specific Security Policies HOT 1
- How do you switch to v2? HOT 2
- Calling middleware.SetLoggerInContext in Middlewares HOT 1
- V2: Embedded structs are not inlined in the OpenAPI Spec HOT 1
- Validating JSON outside of a request HOT 3
- Schema: anyOf, allOf, oneOf, not HOT 1
- String Array Input Inconsistency HOT 1
- Migration to V2 using V1 Middleware and chi HOT 1
- Support nullable type HOT 2
- Recursion in Schemas HOT 4
- Panic Should Generate a 500 Status Code HOT 2
- Errors have bogus schema HOT 2
- Middleware Headers HOT 1
- Access to Request HOT 3
- Potentially Nasty Ambiguity HOT 6
- Server Sent Events HOT 5
- Support multiple request input sources
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from huma.