On Sunday, 20 September 2020 at 00:36:30 UTC, Adam D. Ruppe wrote:
[...]
I browsed in your arsd docs a bit and I'll have a closer look at
the CGI module a bit later.
Your http2 module piqued my interest as it could come in handy
some time later :)
Looks like your modules cover everything I
On Sunday, 20 September 2020 at 01:51:22 UTC, wjoe wrote:
Would even be more awesome if it provided a function which
could be called from a custom main on top of the FancyMain.
I find e.g. custom parsing of command line arguments incredibly
useful.
Yea, the version 2.0 stuff inside cgi.d does
On Sunday, 20 September 2020 at 00:36:30 UTC, Adam D. Ruppe wrote:
[...]
That's it - all the html and javascript are all auto-generated.
Amazing :)
Would even be more awesome if it provided a function which could
be called from a custom main on top of the FancyMain.
I find e.g. custom
On Saturday, 19 September 2020 at 20:17:06 UTC, aberba wrote:
I personally (and many others in the industry... judging by
popularity of express (node.js) and the plentiful third-party
libraries,..do prefer the router.get() design. Also having
everything abstracted in a convenient and
On Saturday, 19 September 2020 at 19:27:40 UTC, Steven
Schveighoffer wrote:
[...]
This used to be the expected way to set up vibe (using module
constructors). And vibe would provide its own main function.
I *think* the idea was to allow registration of different
handlers in their respective
On Saturday, 19 September 2020 at 20:17:06 UTC, aberba wrote:
Arsd cgi.d might be what you want if you want to it your way as
its more low-level interface-wise.
Eh, it depends. My lib lets you do as much or as little as you
want.
About ten years ago, I wrote a framework on top that
On Saturday, 19 September 2020 at 20:17:06 UTC, aberba wrote:
On Friday, 18 September 2020 at 22:31:09 UTC, mw wrote:
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
Are there other frameworks besides vibe that can do what I
want?
Personally I use vibe.d for basic side projects.
On Friday, 18 September 2020 at 22:31:09 UTC, mw wrote:
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
Are there other frameworks besides vibe that can do what I
want?
Just FYI, there is also:
https://code.dlang.org/packages/hunt-framework
I never used myself, you need to
On Saturday, 19 September 2020 at 18:56:20 UTC, Steven
Schveighoffer wrote:
On 9/19/20 7:15 AM, ikod wrote:
On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote:
On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote:
My preferable way to handle such thing is: convert incoming
data
On 9/19/20 3:36 PM, IGotD- wrote:
On Saturday, 19 September 2020 at 19:27:40 UTC, Steven Schveighoffer wrote:
I used Kai's book, and yeah, you have to do things the vibe way. But
most web frameworks are that way I think.
Do you have a reference to this book (web link, ISBN)?
Sure:
On Saturday, 19 September 2020 at 19:27:40 UTC, Steven
Schveighoffer wrote:
I used Kai's book, and yeah, you have to do things the vibe
way. But most web frameworks are that way I think.
Do you have a reference to this book (web link, ISBN)?
On 9/19/20 6:59 AM, wjoe wrote:
Handling file uploads is one example, another is command line arguments.
The presumption here is there is vibe and there can only be vibe. It
takes them from Runtime.args. Duh?
This didn't make sense to me until I saw example where the
initialization of vibe was
On 9/19/20 7:15 AM, ikod wrote:
On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote:
On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote:
On Friday, 18 September 2020 at 12:58:29 UTC, Steven Schveighoffer
wrote:
On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
But again, solved
On Friday, 18 September 2020 at 22:21:52 UTC, Adam D. Ruppe wrote:
On Friday, 18 September 2020 at 22:02:07 UTC, aberba wrote:
[...]
I actually added *exactly* this to cgi.d in... 2010 if I
remember right. I even kinda documented it:
On Friday, 18 September 2020 at 22:31:09 UTC, mw wrote:
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
Are there other frameworks besides vibe that can do what I
want?
Just FYI, there is also:
https://code.dlang.org/packages/hunt-framework
I never used myself, you need to
On Saturday, 19 September 2020 at 11:11:21 UTC, ikod wrote:
On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote:
On Friday, 18 September 2020 at 12:58:29 UTC, Steven
Schveighoffer wrote:
On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
But again, solved with an enhancement that allows you
On Friday, 18 September 2020 at 13:13:16 UTC, wjoe wrote:
On Friday, 18 September 2020 at 12:58:29 UTC, Steven
Schveighoffer wrote:
On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
But again, solved with an enhancement that allows you to
process the data in your code. I'll file the enhancement
On Friday, 18 September 2020 at 22:02:07 UTC, aberba wrote:
[...]
That's what I was trying to answer. When Steve said meh, he
probably didn't get what I said. Probably its because of my
typos.
This sort of convenience and productivity benefit is part of
why I use Node.Js in the job when I
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
Are there other frameworks besides vibe that can do what I want?
Just FYI, there is also:
https://code.dlang.org/packages/hunt-framework
I never used myself, you need to investigate.
On Friday, 18 September 2020 at 22:02:07 UTC, aberba wrote:
In this case you want to get the file(s) in memory...in the
form of bytes (or buffer) and probably set a file size limit.
Its all doable through a library but such a library doesn't
exist in D yet. At least not that I know of.
I
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
On Thursday, 17 September 2020 at 22:33:46 UTC, Steven
Schveighoffer wrote:
On 9/17/20 6:13 PM, aberba wrote:
On Thursday, 17 September 2020 at 21:57:37 UTC, Steven
Schveighoffer wrote:
On 9/17/20 1:08 PM, wjoe wrote:
[...]
the
On Friday, 18 September 2020 at 12:58:29 UTC, Steven
Schveighoffer wrote:
On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
But again, solved with an enhancement that allows you to
process the data in your code. I'll file the enhancement
request for you, as I think it's a nice addition.
On Friday, 18 September 2020 at 12:39:43 UTC, Steven
Schveighoffer wrote:
On 9/17/20 8:07 PM, wjoe wrote:
[...]
See the code here:
https://github.com/vibe-d/vibe.d/blob/ebebfa827f568cc9bced4bec2b66edc043a8adf7/inet/vibe/inet/webform.d#L311
[...]
No, not at the moment. Which is why I was
On 9/18/20 8:39 AM, Steven Schveighoffer wrote:
But again, solved with an enhancement that allows you to process the
data in your code. I'll file the enhancement request for you, as I think
it's a nice addition.
https://github.com/vibe-d/vibe.d/issues/2478
-Steve
On 9/17/20 8:07 PM, wjoe wrote:
Not a reply to this post in particular but to all the ones I've read so
far.
If I understand correctly. Vibe parses the form data and writes all
files to disk. Where to ?
See the code here:
On Friday, 18 September 2020 at 11:44:39 UTC, Atwork wrote:
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
And if not, how is data processed with a 10mb file upload
followed by a few number fields ?
It needs to read all of the file data to get to the other data
fields, doesn't it ?
On Friday, 18 September 2020 at 00:07:12 UTC, wjoe wrote:
And if not, how is data processed with a 10mb file upload
followed by a few number fields ?
It needs to read all of the file data to get to the other data
fields, doesn't it ?
Yes and no
On Thursday, 17 September 2020 at 22:33:46 UTC, Steven
Schveighoffer wrote:
On 9/17/20 6:13 PM, aberba wrote:
On Thursday, 17 September 2020 at 21:57:37 UTC, Steven
Schveighoffer wrote:
On 9/17/20 1:08 PM, wjoe wrote:
[...]
the `files` property actually does the processing only when
you
On 9/17/20 6:13 PM, aberba wrote:
On Thursday, 17 September 2020 at 21:57:37 UTC, Steven Schveighoffer wrote:
On 9/17/20 1:08 PM, wjoe wrote:
[...]
the `files` property actually does the processing only when you call it.
If you access the `bodyReader` property directly, you can process that
On Thursday, 17 September 2020 at 21:57:37 UTC, Steven
Schveighoffer wrote:
On 9/17/20 1:08 PM, wjoe wrote:
[...]
the `files` property actually does the processing only when you
call it.
If you access the `bodyReader` property directly, you can
process that data yourself. You can even
On 9/17/20 1:08 PM, wjoe wrote:
Every post or example I found copies the file, like your code does, too.
Why is that ? The content of the file upload is embedded in the form
data. There's no need for temporary files or copying at all.
On top of that, if I upload a file to a server which is on
On Thursday, 17 September 2020 at 16:32:55 UTC, WebFreak001 wrote:
On Thursday, 17 September 2020 at 16:00:33 UTC, wjoe wrote:
I found this [1] but unfortunately the post this refers to is
a dead link and the content, unfortunately, didn't tell me
anything that I didn't already find in the
On Thursday, 17 September 2020 at 16:32:55 UTC, WebFreak001 wrote:
On Thursday, 17 September 2020 at 16:00:33 UTC, wjoe wrote:
I found this [1] but unfortunately the post this refers to is
a dead link and the content, unfortunately, didn't tell me
anything that I didn't already find in the
On Thursday, 17 September 2020 at 16:00:33 UTC, wjoe wrote:
I found this [1] but unfortunately the post this refers to is a
dead link and the content, unfortunately, didn't tell me
anything that I didn't already find in the docs.
What I can get from the form is the form fields with content,
34 matches
Mail list logo