Reading raw data doesn't appear to work
See original GitHub issueSurely I’m doing something wrong, but this isn’t working for me:
'use strict';
const koa = require('koa');
const bodyParser = require('koa-bodyparser');
const app = koa();
app.use(bodyParser({
enableTypes: ['text']
}));
app.use(function *() {
this.body = this.request.body;
});
app.listen(3000);
$ curl -v --data 'Hello world' localhost:3000
* Rebuilt URL to: localhost:3000/
* Hostname was NOT found in DNS cache
* Trying ::1...
* Connected to localhost (::1) port 3000 (#0)
> POST / HTTP/1.1
> User-Agent: curl/7.37.1
> Host: localhost:3000
> Accept: */*
> Content-Length: 11
> Content-Type: application/x-www-form-urlencoded
>
* upload completely sent off: 11 out of 11 bytes
< HTTP/1.1 200 OK
< Content-Type: application/json; charset=utf-8
< Content-Length: 2
< Date: Thu, 19 May 2016 03:29:36 GMT
< Connection: keep-alive
<
* Connection #0 to host localhost left intact
{}
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (2 by maintainers)
Top Results From Across the Web
Reading Raw Data - SAS Help Center
When you read raw data with a DATA step, you can use a ... Unlike some languages, SAS does not read trailing blanks...
Read more >What to do If the Hard Disk is Recognized as RAW - iFixit
If the reason for RAW file system to appear is wrong disconnection of the disk (or a power failure/shutdown in an incorrect way...
Read more >What To Do When Your RAW File Cannot be Read ... - YouTube
If you buy a newly released camera, you may find that the RAW files from that camera cannot be read by your post...
Read more >Reading Raw Data in SAS Or R - Stack Overflow
UPDATE FOR UPDATED QUESTION: The variables from the raw data file must be listed in the INPUT statment in the same order as...
Read more >What is raw data and how does it work? - TechTarget
Raw data, in data management, is the collection of information as gathered by the source before it has been further processed, cleaned or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
try this:
it should be