UNPKG

129 kBPlain TextView Raw
1
2 ✔ returns string with implicit return
3 ✔ returns json for explicit response
4 ✔ returns json for `ok` helper response
5 ✔ returns json for `created` helper response
6 ✔ returns route params
7 ✔ returns query params
8 ✔ returns HTML content
9 ✔ sets security headers by default
10 ✔ accepts POST params as JSON
11 ✔ accepts POST params as Form
12 ✔ compose functions & return string
13 ✔ receives file upload
14 ✖ compose functions & append string Rejected promise returned by test
15 ✖ built-in validation with valid request Rejected promise returned by test
16 ✖ built-in validation strips undefined params Rejected promise returned by test
17 ✖ built-in validation with invalid request
18
19 4 tests failed
20
21 compose functions & append string
22
23 /Users/zaiste/code/huncwotjs/huncwot/node_modules/axios/lib/core/createError.js:16
24
25 Rejected promise returned by test. Reason:
26
27 Error {
28 config: {
29 adapter: Function httpAdapter {},
30 baseURL: 'http://localhost:3000',
31 data: undefined,
32 headers: {
33 Accept: 'application/json, text/plain, */*',
34 'User-Agent': 'axios/0.19.0',
35 },
36 maxContentLength: -1,
37 method: 'get',
38 timeout: 0,
39 transformRequest: [
40 Function transformRequest {},
41 ],
42 transformResponse: [
43 Function transformResponse {},
44 ],
45 url: 'http://localhost:3000/prepend-compose',
46 validateStatus: Function validateStatus {},
47 xsrfCookieName: 'XSRF-TOKEN',
48 xsrfHeaderName: 'X-XSRF-TOKEN',
49 },
50 isAxiosError: true,
51 request: ClientRequest {
52 _contentLength: 0,
53 _ended: true,
54 _events: {
55 abort: Function {},
56 aborted: Function {},
57 error: Function {},
58 prefinish: Function requestOnPrefinish {},
59 socket: Function {},
60 timeout: Function {},
61 },
62 _eventsCount: 6,
63 _hasBody: true,
64 _header: `GET /prepend-compose HTTP/1.1␍␊
65 Accept: application/json, text/plain, */*␍␊
66 User-Agent: axios/0.19.0␍␊
67 Host: localhost:3000␍␊
68 Connection: close␍␊
69 ␍␊
70 `,
71 _headerSent: true,
72 _last: true,
73 _maxListeners: undefined,
74 _onPendingData: Function noopPendingOutput {},
75 _redirectable: Writable {
76 _currentRequest: [Circular],
77 _currentUrl: 'http://localhost:3000/prepend-compose',
78 _events: Object { … },
79 _eventsCount: 2,
80 _maxListeners: undefined,
81 _onNativeResponse: Function {},
82 _options: Object { … },
83 _redirectCount: 0,
84 _redirects: [],
85 _requestBodyBuffers: [],
86 _requestBodyLength: 0,
87 _writableState: WritableState [ … ],
88 writable: true,
89 },
90 _removedConnection: false,
91 _removedContLen: false,
92 _removedTE: false,
93 _trailer: '',
94 aborted: false,
95 agent: Agent {
96 _events: Object { … },
97 _eventsCount: 1,
98 _maxListeners: undefined,
99 defaultPort: 80,
100 freeSockets: {},
101 keepAlive: false,
102 keepAliveMsecs: 1000,
103 maxFreeSockets: 256,
104 maxSockets: Infinity,
105 options: Object { … },
106 protocol: 'http:',
107 requests: {},
108 sockets: Object { … },
109 },
110 chunkedEncoding: false,
111 connection: Socket {
112 _events: Object { … },
113 _eventsCount: 6,
114 _hadError: false,
115 _host: 'localhost',
116 _httpMessage: [Circular],
117 _maxListeners: undefined,
118 _parent: null,
119 _pendingData: null,
120 _pendingEncoding: '',
121 _readableState: ReadableState [ … ],
122 _server: null,
123 _sockname: null,
124 _writableState: WritableState [ … ],
125 allowHalfOpen: false,
126 connecting: false,
127 parser: null,
128 readable: true,
129 server: null,
130 writable: false,
131 [Symbol(asyncId)]: 78,
132 [Symbol(kHandle)]: TCP { … },
133 [Symbol(lastWriteQueueSize)]: 0,
134 [Symbol(timeout)]: null,
135 [Symbol(kBuffer)]: null,
136 [Symbol(kBufferCb)]: null,
137 [Symbol(kBufferGen)]: null,
138 [Symbol(kBytesRead)]: 0,
139 [Symbol(kBytesWritten)]: 0,
140 },
141 finished: true,
142 maxHeadersCount: null,
143 method: 'GET',
144 outputData: [],
145 outputSize: 0,
146 parser: null,
147 path: '/prepend-compose',
148 res: IncomingMessage {
149 _consuming: false,
150 _dumped: false,
151 _events: Object { … },
152 _eventsCount: 3,
153 _maxListeners: undefined,
154 _readableState: ReadableState [ … ],
155 aborted: false,
156 client: Socket { … },
157 complete: true,
158 connection: Socket { … },
159 headers: Object { … },
160 httpVersion: '1.1',
161 httpVersionMajor: 1,
162 httpVersionMinor: 1,
163 method: null,
164 rawHeaders: Array [ … ],
165 rawTrailers: [],
166 readable: false,
167 redirects: [],
168 req: [Circular],
169 responseUrl: 'http://localhost:3000/prepend-compose',
170 socket: Socket { … },
171 statusCode: 500,
172 statusMessage: 'Internal Server Error',
173 trailers: {},
174 upgrade: false,
175 url: '',
176 },
177 sendDate: false,
178 shouldKeepAlive: false,
179 socket: Socket {
180 _events: Object { … },
181 _eventsCount: 6,
182 _hadError: false,
183 _host: 'localhost',
184 _httpMessage: [Circular],
185 _maxListeners: undefined,
186 _parent: null,
187 _pendingData: null,
188 _pendingEncoding: '',
189 _readableState: ReadableState [ … ],
190 _server: null,
191 _sockname: null,
192 _writableState: WritableState [ … ],
193 allowHalfOpen: false,
194 connecting: false,
195 parser: null,
196 readable: true,
197 server: null,
198 writable: false,
199 [Symbol(asyncId)]: 78,
200 [Symbol(kHandle)]: TCP { … },
201 [Symbol(lastWriteQueueSize)]: 0,
202 [Symbol(timeout)]: null,
203 [Symbol(kBuffer)]: null,
204 [Symbol(kBufferCb)]: null,
205 [Symbol(kBufferGen)]: null,
206 [Symbol(kBytesRead)]: 0,
207 [Symbol(kBytesWritten)]: 0,
208 },
209 socketPath: undefined,
210 timeoutCb: null,
211 upgradeOrConnect: false,
212 useChunkedEncodingByDefault: false,
213 writable: true,
214 [Symbol(kNeedDrain)]: false,
215 [Symbol(isCorked)]: false,
216 [Symbol(kOutHeaders)]: {
217 accept: Array [ … ],
218 host: Array [ … ],
219 'user-agent': Array [ … ],
220 },
221 },
222 response: {
223 config: {
224 adapter: Function httpAdapter {},
225 baseURL: 'http://localhost:3000',
226 data: undefined,
227 headers: Object { … },
228 maxContentLength: -1,
229 method: 'get',
230 timeout: 0,
231 transformRequest: Array [ … ],
232 transformResponse: Array [ … ],
233 url: 'http://localhost:3000/prepend-compose',
234 validateStatus: Function validateStatus {},
235 xsrfCookieName: 'XSRF-TOKEN',
236 xsrfHeaderName: 'X-XSRF-TOKEN',
237 },
238 data: `<!DOCTYPE html>␊
239 <html lang="en">␊
240 <head>␊
241 <meta charset="UTF-8">␊
242 <title> </title>␊
243
244 <style type="text/css">␊
245 /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript&plugins=line-highlight+line-numbers+toolbar+show-language */␊
246 /**␊
247 * prism.js default theme for JavaScript, CSS and HTML␊
248 * Based on dabblet (http://dabblet.com)␊
249 * @author Lea Verou␊
250 */␊
251 code[class*="language-"],␊
252 pre[class*="language-"] {␊
253 color: black;␊
254 background: none;␊
255 text-shadow: 0 1px white;␊
256 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;␊
257 text-align: left;␊
258 white-space: pre;␊
259 word-spacing: normal;␊
260 word-break: normal;␊
261 word-wrap: normal;␊
262 line-height: 1.8;␊
263
264 -moz-tab-size: 4;␊
265 -o-tab-size: 4;␊
266 tab-size: 4;␊
267
268 -webkit-hyphens: none;␊
269 -moz-hyphens: none;␊
270 -ms-hyphens: none;␊
271 hyphens: none;␊
272 }␊
273
274 pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,␊
275 code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {␊
276 text-shadow: none;␊
277 background: #b3d4fc;␊
278 }␊
279
280 pre[class*="language-"]::selection, pre[class*="language-"] ::selection,␊
281 code[class*="language-"]::selection, code[class*="language-"] ::selection {␊
282 text-shadow: none;␊
283 background: #b3d4fc;␊
284 }␊
285
286 @media print {␊
287 code[class*="language-"],␊
288 pre[class*="language-"] {␊
289 text-shadow: none;␊
290 }␊
291 }␊
292
293 /* Code blocks */␊
294 pre[class*="language-"] {␊
295 padding: 1em;␊
296 margin: .5em 0;␊
297 overflow: auto;␊
298 }␊
299
300 :not(pre) > code[class*="language-"],␊
301 pre[class*="language-"] {␊
302 background: #f5f2f0;␊
303 }␊
304
305 /* Inline code */␊
306 :not(pre) > code[class*="language-"] {␊
307 padding: .1em;␊
308 border-radius: .3em;␊
309 white-space: normal;␊
310 }␊
311
312 .token.comment,␊
313 .token.prolog,␊
314 .token.doctype,␊
315 .token.cdata {␊
316 color: slategray;␊
317 }␊
318
319 .token.punctuation {␊
320 color: #999;␊
321 }␊
322
323 .namespace {␊
324 opacity: .7;␊
325 }␊
326
327 .token.property,␊
328 .token.tag,␊
329 .token.boolean,␊
330 .token.number,␊
331 .token.constant,␊
332 .token.symbol,␊
333 .token.deleted {␊
334 color: #905;␊
335 }␊
336
337 .token.selector,␊
338 .token.attr-name,␊
339 .token.string,␊
340 .token.char,␊
341 .token.builtin,␊
342 .token.inserted {␊
343 color: #690;␊
344 }␊
345
346 .token.operator,␊
347 .token.entity,␊
348 .token.url,␊
349 .language-css .token.string,␊
350 .style .token.string {␊
351 color: #a67f59;␊
352 background: hsla(0, 0%, 100%, .5);␊
353 }␊
354
355 .token.atrule,␊
356 .token.attr-value,␊
357 .token.keyword {␊
358 color: #07a;␊
359 }␊
360
361 .token.function {␊
362 color: #DD4A68;␊
363 }␊
364
365 .token.regex,␊
366 .token.important,␊
367 .token.variable {␊
368 color: #e90;␊
369 }␊
370
371 .token.important,␊
372 .token.bold {␊
373 font-weight: bold;␊
374 }␊
375 .token.italic {␊
376 font-style: italic;␊
377 }␊
378
379 .token.entity {␊
380 cursor: help;␊
381 }␊
382
383 pre[data-line] {␊
384 position: relative;␊
385 padding: 1em 0 1em 3em;␊
386 }␊
387
388 .line-highlight {␊
389 position: absolute;␊
390 left: 0;␊
391 right: 0;␊
392 padding: inherit 0;␊
393 margin-top: 1em; /* Same as .prism’s padding-top */␊
394
395 background: hsla(24, 20%, 50%,.08);␊
396 background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));␊
397
398 pointer-events: none;␊
399
400 line-height: inherit;␊
401 white-space: pre;␊
402 }␊
403
404 .line-highlight:before,␊
405 .line-highlight[data-end]:after {␊
406 content: attr(data-start);␊
407 position: absolute;␊
408 top: .6em;␊
409 left: .4em;␊
410 min-width: 1em;␊
411 padding: 0 .5em;␊
412 background-color: hsla(24, 20%, 50%,.4);␊
413 color: hsl(24, 20%, 95%);␊
414 font: bold 65%/1.5 sans-serif;␊
415 text-align: center;␊
416 vertical-align: .3em;␊
417 border-radius: 999px;␊
418 text-shadow: none;␊
419 box-shadow: 0 1px white;␊
420 }␊
421
422 .line-highlight[data-end]:after {␊
423 content: attr(data-end);␊
424 top: auto;␊
425 bottom: .4em;␊
426 }␊
427
428 pre.line-numbers {␊
429 position: relative;␊
430 padding-left: 3.8em;␊
431 counter-reset: linenumber;␊
432 }␊
433
434 pre.line-numbers > code {␊
435 position: relative;␊
436 display: block;␊
437 }␊
438
439 .line-numbers .line-numbers-rows {␊
440 position: absolute;␊
441 pointer-events: none;␊
442 top: 0;␊
443 font-size: 100%;␊
444 left: -3.0em;␊
445 width: 3em; /* works for line-numbers below 1000 lines */␊
446 letter-spacing: -1px;␊
447 border-right: 1px solid #999;␊
448
449 -webkit-user-select: none;␊
450 -moz-user-select: none;␊
451 -ms-user-select: none;␊
452 user-select: none;␊
453
454 }␊
455
456 .line-numbers-rows > span {␊
457 pointer-events: none;␊
458 display: block;␊
459 counter-increment: linenumber;␊
460 }␊
461
462 .line-numbers-rows > span:before {␊
463 content: counter(linenumber);␊
464 color: #999;␊
465 display: block;␊
466 padding-right: 0.8em;␊
467 text-align: right;␊
468 }␊
469 pre.code-toolbar {␊
470 position: relative;␊
471 }␊
472
473 pre.code-toolbar > .toolbar {␊
474 position: absolute;␊
475 top: .3em;␊
476 right: .2em;␊
477 transition: opacity 0.3s ease-in-out;␊
478 opacity: 0;␊
479 }␊
480
481 pre.code-toolbar:hover > .toolbar {␊
482 opacity: 1;␊
483 }␊
484
485 pre.code-toolbar > .toolbar .toolbar-item {␊
486 display: inline-block;␊
487 }␊
488
489 pre.code-toolbar > .toolbar a {␊
490 cursor: pointer;␊
491 }␊
492
493 pre.code-toolbar > .toolbar button {␊
494 background: none;␊
495 border: 0;␊
496 color: inherit;␊
497 font: inherit;␊
498 line-height: normal;␊
499 overflow: visible;␊
500 padding: 0;␊
501 -webkit-user-select: none; /* for button */␊
502 -moz-user-select: none;␊
503 -ms-user-select: none;␊
504 }␊
505
506 pre.code-toolbar > .toolbar a,␊
507 pre.code-toolbar > .toolbar button,␊
508 pre.code-toolbar > .toolbar span {␊
509 color: #bbb;␊
510 font-size: .8em;␊
511 padding: 0 .5em;␊
512 background: #f5f2f0;␊
513 background: rgba(224, 224, 224, 0.2);␊
514 box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);␊
515 border-radius: .5em;␊
516 }␊
517
518 pre.code-toolbar > .toolbar a:hover,␊
519 pre.code-toolbar > .toolbar a:focus,␊
520 pre.code-toolbar > .toolbar button:hover,␊
521 pre.code-toolbar > .toolbar button:focus,␊
522 pre.code-toolbar > .toolbar span:hover,␊
523 pre.code-toolbar > .toolbar span:focus {␊
524 color: inherit;␊
525 text-decoration: none;␊
526 }␊
527
528 * {␊
529 padding: 0;␊
530 margin: 0;␊
531 }␊
532
533 html, body {␊
534 height: 100%;␊
535 width: 100%;␊
536 }␊
537
538 body {␊
539 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
540 font-size: 16px;␊
541 color: #545454;␊
542 }␊
543
544 .container {␊
545 display: flex;␊
546 flex-direction: column;␊
547 width: 100%;␊
548 height: 100%;␊
549 }␊
550
551 .main {␊
552 background: #d9d9dd;␊
553 padding: 2rem 4rem;␊
554 box-sizing: border-box;␊
555 }␊
556
557 .status-code {␊
558 color: #ff2a26;␊
559 font-size: 72px;␊
560 opacity: 0.2;␊
561 }␊
562
563 .message {␊
564 font-weight: normal;␊
565 font-size: 2.5em;␊
566 }␊
567
568 .message small {␊
569 color: #00B1EB;␊
570 font-size: .65em;␊
571 font-family: Menlo, SFMono-Regular, Monaco, "Fira Code", "Fira Mono", Consolas, "Liberation Mono", "Courier New", monospace;␊
572 }␊
573
574 .frames {␊
575 display: flex;␊
576 }␊
577
578 .frame-preview {␊
579 background: #fff;␊
580 width: 50%;␊
581 }␊
582
583 .frame-stack {␊
584 flex: 1;␊
585 box-sizing: border-box;␊
586 }␊
587
588 .frames-list {␊
589 overflow: auto;␊
590 }␊
591
592 /* Request */␊
593
594 .request {␊
595 padding: 50px 80px;␊
596 }␊
597
598 .request .request-subsection {␊
599 text-transform: uppercase;␊
600 font-size: 18px;␊
601 letter-spacing: 1px;␊
602 padding: 0 5px 5px 5px;␊
603 margin-bottom: 15px;␊
604 }␊
605
606 .request table {␊
607 width: 100%;␊
608 border-collapse: collapse;␊
609 margin-bottom: 80px;␊
610 }␊
611
612 .request table td {␊
613 padding: 6px 5px;␊
614 font-size: 14px;␊
615 letter-spacing: 0.4px;␊
616 color: #455275;␊
617 border-bottom: 1px solid #e8e8e8;␊
618 word-break: break-word;␊
619 }␊
620
621 .request table td.title {␊
622 color: #999;␊
623 width: 40%;␊
624 font-size: 14px;␊
625 font-weight: 600;␊
626 text-transform: uppercase;␊
627 }␊
628
629 .exception {␊
630 background-color: #EFEFEF;␊
631 padding: 2rem 4rem;␊
632 border-top: 12px solid#00B1EB;␊
633 }␊
634
635 .exception-name {␊
636 color: #ff2a26;␊
637 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
638 font-size: 1.5em;␊
639 opacity: .9;␊
640 font-weight: bold;␊
641 }␊
642
643 code[class*="language-"], pre[class*="language-"] {␊
644 background: transparent;␊
645 font-size: 18px;␊
646 }␊
647
648 .line-numbers .line-numbers-rows {␊
649 border: none;␊
650 }␊
651
652 .frame-row {␊
653 display: flex;␊
654 justify-content: space-between;␊
655 padding: 16px 32px 16px 32px;␊
656 position: relative;␊
657 cursor: pointer;␊
658 transition: background 300ms ease;␊
659 }␊
660
661 .frame-row.native-frame {␊
662 opacity: 0.4;␊
663 display: flex;␊
664 }␊
665
666 .frame-row:after {␊
667 content: "";␊
668 background: #db5461;␊
669 position: absolute;␊
670 top: 50%;␊
671 right: 8px;␊
672 transform: translateY(-50%);␊
673 height: 8px;␊
674 width: 8px;␊
675 border-radius: 24px;␊
676 }␊
677
678 .frame-row:hover, .frame-row.active {␊
679 background: #fff;␊
680 }␊
681
682 .frame-row.active {␊
683 opacity: 1;␊
684 }␊
685
686 .frame-row-filepath {␊
687 color: #455275;␊
688 font-weight: 600;␊
689 margin-right: 15px;␊
690 }␊
691
692 .frame-context {␊
693 display: none;␊
694 }␊
695
696 .frame-row-code {␊
697 color: #999;␊
698 }␊
699
700 #frame-file-name {␊
701 color: #455275;␊
702 font-weight: 600;␊
703 border-bottom: 1px solid #e8e8e8;␊
704 padding: 16px 32px;␊
705 }␊
706
707 #frame-function-name {␊
708 color: #999;␊
709 font-weight: 400;␊
710 border-top: 1px solid #e8e8e8;␊
711 padding: 16px 32px;␊
712 }␊
713
714 @media only screen and (max-width: 970px) {␊
715 .frames {␊
716 flex-direction: column-reverse;␊
717 }␊
718
719 .frame-preview {␊
720 width: 100%;␊
721 }␊
722
723 .frame-stack {␊
724 width: 100%;␊
725 }␊
726 }␊
727
728 </style>␊
729
730 </head>␊
731 <body>␊
732 <section class="exception">␊
733 <h2 class="exception-name">TypeError</h2>␊
734 <h2 class="message"> The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined</h2>␊
735 </section>␊
736 <section class="container">␊
737 <section class="main">␊
738 <div class="frames">␊
739
740 <div class="frame-stack">␊
741 <div class="frames-list">␊
742
743 <div class="frame-row active native-frame">␊
744 <div class="frame-row-filepath">␊
745 buffer.js:693:11␊
746 </div>␊
747 <div class="frame-row-code">␊
748 Function.byteLength␊
749 </div>␊
750 <div class="frame-context"␊
751 data-start=""␊
752 data-line="693"␊
753 data-file="buffer.js"␊
754 data-method="Function.byteLength"␊
755 data-line-column="693:11"␊
756 >␊
757
758
759 </div>␊
760 </div>␊
761
762 <div class="frame-row ">␊
763 <div class="frame-row-filepath">␊
764 index.js:244:47␊
765 </div>␊
766 <div class="frame-row-code">␊
767
768 </div>␊
769 <div class="frame-context"␊
770 data-start="239"␊
771 data-line="244"␊
772 data-file="index.js"␊
773 data-method=""␊
774 data-line-column="244:47"␊
775 > } else {␊
776 if (!response.getHeader(&#39;Content-Type&#39;))␊
777 response.setHeader(&#39;Content-Type&#39;, type || &#39;text&#x2F;plain&#39;);␊
778 }␊
779
780 response.setHeader(&#39;Content-Length&#39;, Buffer.byteLength(str));␊
781 response.end(str);␊
782 };␊
783
784 const handleRequest &#x3D; async context &#x3D;&gt; {␊
785 const { headers } &#x3D; context.request;␊
786 </div>␊
787 </div>␊
788
789 <div class="frame-row native-frame">␊
790 <div class="frame-row-filepath">␊
791 internal&#x2F;process&#x2F;task_queues.js:93:5␊
792 </div>␊
793 <div class="frame-row-code">␊
794 processTicksAndRejections␊
795 </div>␊
796 <div class="frame-context"␊
797 data-start=""␊
798 data-line="93"␊
799 data-file="internal&#x2F;process&#x2F;task_queues.js"␊
800 data-method="processTicksAndRejections"␊
801 data-line-column="93:5"␊
802 >␊
803
804
805 </div>␊
806 </div>␊
807 </div>␊
808 </div>␊
809
810 <div class="frame-preview">␊
811 <div id="frame-file-name"></div>␊
812 <pre class="line-numbers"><code class="language-js" id="snippet"></code></pre>␊
813 <div id="frame-function-name"></div>␊
814 </div>␊
815 </div>␊
816 </section>␊
817
818 <section class="request">␊
819 <h2 class="request-subsection">Request</h2>␊
820 <table>␊
821 <tr>␊
822 <td class="title">URL</td>␊
823 <td>&#x2F;prepend-compose</td>␊
824 </tr>␊
825
826 <tr>␊
827 <td class="title">Method</td>␊
828 <td>GET</td>␊
829 </tr>␊
830 </table>␊
831
832 <h2 class="request-subsection">Headers</h2>␊
833 <table>␊
834 <tr>␊
835 <td class="title"> ACCEPT </td>␊
836 <td> application&#x2F;json, text&#x2F;plain, *&#x2F;* </td>␊
837 </tr>␊
838 <tr>␊
839 <td class="title"> USER-AGENT </td>␊
840 <td> axios&#x2F;0.19.0 </td>␊
841 </tr>␊
842 <tr>␊
843 <td class="title"> HOST </td>␊
844 <td> localhost:3000 </td>␊
845 </tr>␊
846 </table>␊
847
848 <h2 class="request-subsection">Cookies</h2>␊
849 <table>␊
850 </table>␊
851 </section>␊
852 </section>␊
853 <script type="text/javascript">␊
854 var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var l=/\\blang(?:uage)?-(\\w+)\\b/i,t=0,L=_self.Prism={util:{encode:function(e){return e instanceof s?new s(e.type,L.util.encode(e.content),e.alias):"Array"===L.util.type(e)?e.map(L.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\\[object (\\w+)\\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(L.util.type(e)){case"Object":var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=L.util.clone(e[n]));return t;case"Array":return e.map&&e.map(function(e){return L.util.clone(e)})}return e}},languages:{extend:function(e,t){var n=L.util.clone(L.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(n,e,t,a){var r=(a=a||L.languages)[n];if(2==arguments.length){for(var i in t=e)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var s={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);s[o]=r[o]}return L.languages.DFS(L.languages,function(e,t){t===a[n]&&e!=n&&(this[e]=s)}),a[n]=s},DFS:function(e,t,n,a){for(var r in a=a||{},e)e.hasOwnProperty(r)&&(t.call(e,r,e[r],n||r),"Object"!==L.util.type(e[r])||a[L.util.objId(e[r])]?"Array"!==L.util.type(e[r])||a[L.util.objId(e[r])]||(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,r,a)):(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,null,a)))}},plugins:{},highlightAll:function(e,t){var n={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};L.hooks.run("before-highlightall",n);for(var a,r=n.elements||document.querySelectorAll(n.selector),i=0;a=r[i++];)L.highlightElement(a,!0===e,n.callback)},highlightElement:function(e,t,n){for(var a,r,i=e;i&&!l.test(i.className);)i=i.parentNode;i&&(a=(i.className.match(l)||[,""])[1].toLowerCase(),r=L.languages[a]),e.className=e.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a,i=e.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a);var s={element:e,language:a,grammar:r,code:e.textContent};if(L.hooks.run("before-sanity-check",s),!s.code||!s.grammar)return s.code&&(s.element.textContent=s.code),void L.hooks.run("complete",s);if(L.hooks.run("before-highlight",s),t&&_self.Worker){var o=new Worker(L.filename);o.onmessage=function(e){s.highlightedCode=e.data,L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(s.element),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},o.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else s.highlightedCode=L.highlight(s.code,s.grammar,s.language),L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(e),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},highlight:function(e,t,n){var a=L.tokenize(e,t);return s.stringify(L.util.encode(a),n)},tokenize:function(e,t){var n=L.Token,a=[e],r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}e:for(var i in t)if(t.hasOwnProperty(i)&&t[i]){var s=t[i];s="Array"===L.util.type(s)?s:[s];for(var o=0;o<s.length;++o){var l=s[o],u=l.inside,c=!!l.lookbehind,d=!!l.greedy,p=0,g=l.alias;if(d&&!l.pattern.global){var m=l.pattern.toString().match(/[imuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+"g")}l=l.pattern||l;for(var f=0,h=0;f<a.length;h+=a[f].length,++f){var b=a[f];if(a.length>e.length)break e;if(!(b instanceof n)){l.lastIndex=0;var y=1;if(!(S=l.exec(b))&&d&&f!=a.length-1){if(l.lastIndex=h,!(S=l.exec(e)))break;for(var v=S.index+(c?S[1].length:0),w=S.index+S[0].length,k=f,A=h,P=a.length;k<P&&A<w;++k)(A+=a[k].length)<=v&&(++f,h=A);if(a[f]instanceof n||a[k-1].greedy)continue;y=k-f,b=e.slice(h,A),S.index-=h}if(S){c&&(p=S[1].length);w=(v=S.index+p)+(S=S[0].slice(p)).length;var S,x=b.slice(0,v),N=b.slice(w),E=[f,y];x&&E.push(x);var C=new n(i,u?L.tokenize(S,u):S,g,S,d);E.push(C),N&&E.push(N),Array.prototype.splice.apply(a,E)}}}}}return a},hooks:{all:{},add:function(e,t){var n=L.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=L.hooks.all[e];if(n&&n.length)for(var a,r=0;a=n[r++];)a(t)}}},s=L.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length,this.greedy=!!r};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===L.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if("comment"==a.type&&(a.attributes.spellcheck="true"),t.alias){var r="Array"===L.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}L.hooks.run("wrap",a);var i=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(i?" "+i:"")+">"+a.content+"</"+a.tag+">"},!_self.document)return _self.addEventListener&&_self.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,a=t.code,r=t.immediateClose;_self.postMessage(L.highlight(a,L.languages[n],n)),r&&_self.close()},!1),_self.Prism;var e=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return e&&(L.filename=e.src,document.addEventListener&&!e.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(L.highlightAll):window.setTimeout(L.highlightAll,16):document.addEventListener("DOMContentLoaded",L.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\\w\\W]*?-->/,prolog:/<\\?[\\w\\W]+?\\?>/,doctype:/<!DOCTYPE[\\w\\W]+?>/i,cdata:/<!\\[CDATA\\[[\\w\\W]*?]]>/i,tag:{pattern:/<\\/?(?!\\d)[^\\s>\\/=$<]+(?:\\s+[^\\s>\\/=]+(?:=(?:("|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\1|[^\\s'">=]+))?)*\\s*\\/?>/i,inside:{tag:{pattern:/^<\\/?[^\\s>\\/]+/i,inside:{punctuation:/^<\\/?/,namespace:/^[^\\s>\\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\\w\\W]*?(\\1)|[^\\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\\/?>/,"attr-name":{pattern:/[^\\s>\\/]+/,inside:{namespace:/^[^\\s>\\/:]+:/}}}},entity:/&#?[\\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\\/\\*[\\w\\W]*?\\*\\//,atrule:{pattern:/@[\\w-]+?.*?(;|(?=\\s*\\{))/i,inside:{rule:/@[\\w-]+/}},url:/url\\((?:(["'])(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1|.*?)\\)/i,selector:/[^\\{\\}\\s][^\\{\\};]*?(?=\\s*\\{)/,string:{pattern:/("|')(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},property:/(\\b|\\B)[\\w-]+(?=\\s*:)/i,important:/\\B!important\\b/i,function:/[-a-z0-9]+(?=\\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\\w\\W]*?>)[\\w\\W]*?(?=<\\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\\s*style=("|').*?\\1/i,inside:{"attr-name":{pattern:/^\\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\\s*=\\s*['"]|['"]\\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\\\])\\/\\*[\\w\\W]*?\\*\\//,lookbehind:!0},{pattern:/(^|[^\\\\:])\\/\\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},"class-name":{pattern:/((?:\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+)|(?:catch\\s+\\())[a-z0-9_\\.\\\\]+/i,lookbehind:!0,inside:{punctuation:/(\\.|\\\\)/}},keyword:/\\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,boolean:/\\b(true|false)\\b/,function:/[a-z0-9_]+(?=\\()/i,number:/\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)\\b/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*|\\/|~|\\^|%/,punctuation:/[{}[\\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\\b/,number:/\\b-?(0x[\\dA-Fa-f]+|0b[01]+|0o[0-7]+|\\d*\\.?\\d+([Ee][+-]?\\d+)?|NaN|Infinity)\\b/,function:/[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*(?=\\()/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*\\*?|\\/|~|\\^|%|\\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\\/])\\/(?!\\/)(\\[.+?]|\\\\.|[^\\/\\\\\\r\\n])+\\/[gimyu]{0,5}(?=\\s*($|[\\r\\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\\\\\|\\\\?[^\\\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\\$\\{[^}]+\\}/,inside:{"interpolation-punctuation":{pattern:/^\\$\\{|\\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\\s\\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\\w\\W]*?>)[\\w\\W]*?(?=<\\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript,function(){function r(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function d(e,t){return t=" "+t+" ",-1<(" "+e.className+" ").replace(/[\\n\\t]/g," ").indexOf(t)}function i(e,t,n){for(var a,r=t.replace(/\\s+/g,"").split(","),i=+e.getAttribute("data-line-offset")||0,s=(p()?parseInt:parseFloat)(getComputedStyle(e).lineHeight),o=0;a=r[o++];){var l=+(a=a.split("-"))[0],u=+a[1]||l,c=document.createElement("div");c.textContent=Array(u-l+2).join(" \\n"),c.setAttribute("aria-hidden","true"),c.className=(n||"")+" line-highlight",d(e,"line-numbers")||(c.setAttribute("data-start",l),l<u&&c.setAttribute("data-end",u)),c.style.top=(l-i-1)*s+"px",d(e,"line-numbers")?e.appendChild(c):(e.querySelector("code")||e).appendChild(c)}}function a(){var e=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var t=(e.match(/\\.([\\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),a=document.getElementById(n);a&&(a.hasAttribute("data-line")||a.setAttribute("data-line",""),i(a,t,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var p=function(){if(void 0===t){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(e),t=38===e.offsetHeight,document.body.removeChild(e)}return t},s=0;Prism.hooks.add("complete",function(e){var t=e.element.parentNode,n=t&&t.getAttribute("data-line");t&&n&&/pre/i.test(t.nodeName)&&(clearTimeout(s),r(".line-highlight",t).forEach(function(e){e.parentNode.removeChild(e)}),i(t,n),s=setTimeout(a,1))}),window.addEventListener&&window.addEventListener("hashchange",a)}var t}(),"undefined"!=typeof self&&self.Prism&&self.document&&Prism.hooks.add("complete",function(e){if(e.code){var t=e.element.parentNode,n=/\\s*\\bline-numbers\\b\\s*/;if(t&&/pre/i.test(t.nodeName)&&(n.test(t.className)||n.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){n.test(e.element.className)&&(e.element.className=e.element.className.replace(n,"")),n.test(t.className)||(t.className+=" line-numbers");var a,r=e.code.match(/\\n(?!$)/g),i=r?r.length+1:1,s=new Array(i+1);s=s.join("<span></span>"),(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=s,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(a)}}}),function(){if("undefined"!=typeof self&&self.Prism&&self.document){function t(){}var i=[],s={};Prism.plugins.toolbar={};var e=Prism.plugins.toolbar.registerButton=function(e,n){var t;t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),t.textContent=n.text,t},i.push(s[e]=t)},n=Prism.plugins.toolbar.hook=function(a){var e=a.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&!e.classList.contains("code-toolbar")){e.classList.add("code-toolbar");var r=document.createElement("div");r.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(i=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return s[e]||t})),i.forEach(function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),r.appendChild(n)}}),e.appendChild(r)}};e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",n)}}(),function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Show Languages plugin loaded before Toolbar plugin.");var r={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",asciidoc:"AsciiDoc",aspnet:"ASP.NET (C#)",autoit:"AutoIt",autohotkey:"AutoHotkey",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript","css-extras":"CSS Extras",fsharp:"F#",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",inform7:"Inform 7",json:"JSON",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE",matlab:"MATLAB",mel:"MEL",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",parigp:"PARI/GP",php:"PHP","php-extras":"PHP Extras",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",jsx:"React JSX",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",typescript:"TypeScript",vhdl:"VHDL",vim:"vim",wiki:"Wiki markup",xojo:"Xojo (REALbasic)",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)){var n=t.getAttribute("data-language")||r[e.language]||e.language.substring(0,1).toUpperCase()+e.language.substring(1),a=document.createElement("span");return a.textContent=n,a}})}}(),window.onload=function(e){function t(e){var t=e.querySelector(".frame-context"),n=t.innerHTML;n=0===n.trim().length?"Stack frames not available":n;var a=t.getAttribute("data-line"),r=t.getAttribute("data-start"),i=t.getAttribute("data-file"),s=t.getAttribute("data-method"),o=t.getAttribute("data-line-column");document.getElementById("snippet").parentNode.setAttribute("data-line",a),document.getElementById("snippet").parentNode.setAttribute("data-start",r),document.getElementById("snippet").parentNode.setAttribute("data-line-offset",Number(r)-1),document.getElementById("snippet").innerHTML=n,document.getElementById("frame-file-name").innerHTML=i,document.getElementById("frame-function-name").innerHTML=s+" "+o,window.Prism.highlightAll()}var n=document.querySelector(".frame-row.active");document.querySelectorAll(".frame-row").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".frame-row.active").classList.remove("active"),this.classList.add("active"),t(this)})}),t(n)};␊
855 </script>␊
856 </body>␊
857 </html>␊
858 `,
859 headers: {
860 connection: 'close',
861 'content-type': 'text/html',
862 date: 'Thu, 03 Oct 2019 09:50:37 GMT',
863 'transfer-encoding': 'chunked',
864 },
865 request: ClientRequest {
866 _contentLength: 0,
867 _ended: true,
868 _events: Object { … },
869 _eventsCount: 6,
870 _hasBody: true,
871 _header: `GET /prepend-compose HTTP/1.1␍␊
872 Accept: application/json, text/plain, */*␍␊
873 User-Agent: axios/0.19.0␍␊
874 Host: localhost:3000␍␊
875 Connection: close␍␊
876 ␍␊
877 `,
878 _headerSent: true,
879 _last: true,
880 _maxListeners: undefined,
881 _onPendingData: Function noopPendingOutput {},
882 _redirectable: Writable { … },
883 _removedConnection: false,
884 _removedContLen: false,
885 _removedTE: false,
886 _trailer: '',
887 aborted: false,
888 agent: Agent { … },
889 chunkedEncoding: false,
890 connection: Socket { … },
891 finished: true,
892 maxHeadersCount: null,
893 method: 'GET',
894 outputData: [],
895 outputSize: 0,
896 parser: null,
897 path: '/prepend-compose',
898 res: IncomingMessage { … },
899 sendDate: false,
900 shouldKeepAlive: false,
901 socket: Socket { … },
902 socketPath: undefined,
903 timeoutCb: null,
904 upgradeOrConnect: false,
905 useChunkedEncodingByDefault: false,
906 writable: true,
907 [Symbol(kNeedDrain)]: false,
908 [Symbol(isCorked)]: false,
909 [Symbol(kOutHeaders)]: Object { … },
910 },
911 status: 500,
912 statusText: 'Internal Server Error',
913 },
914 toJSON: Function {},
915 message: 'Request failed with status code 500',
916 }
917
918 createError (node_modules/axios/lib/core/createError.js:16:15)
919 settle (node_modules/axios/lib/core/settle.js:17:12)
920 IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:237:11)
921
922
923
924 built-in validation with valid request
925
926 /Users/zaiste/code/huncwotjs/huncwot/node_modules/axios/lib/core/createError.js:16
927
928 Rejected promise returned by test. Reason:
929
930 Error {
931 config: {
932 adapter: Function httpAdapter {},
933 baseURL: 'http://localhost:3000',
934 data: undefined,
935 headers: {
936 Accept: 'application/json, text/plain, */*',
937 'User-Agent': 'axios/0.19.0',
938 },
939 maxContentLength: -1,
940 method: 'get',
941 timeout: 0,
942 transformRequest: [
943 Function transformRequest {},
944 ],
945 transformResponse: [
946 Function transformResponse {},
947 ],
948 url: 'http://localhost:3000/request-validation?name=Zaiste',
949 validateStatus: Function validateStatus {},
950 xsrfCookieName: 'XSRF-TOKEN',
951 xsrfHeaderName: 'X-XSRF-TOKEN',
952 },
953 isAxiosError: true,
954 request: ClientRequest {
955 _contentLength: 0,
956 _ended: true,
957 _events: {
958 abort: Function {},
959 aborted: Function {},
960 error: Function {},
961 prefinish: Function requestOnPrefinish {},
962 socket: Function {},
963 timeout: Function {},
964 },
965 _eventsCount: 6,
966 _hasBody: true,
967 _header: `GET /request-validation?name=Zaiste HTTP/1.1␍␊
968 Accept: application/json, text/plain, */*␍␊
969 User-Agent: axios/0.19.0␍␊
970 Host: localhost:3000␍␊
971 Connection: close␍␊
972 ␍␊
973 `,
974 _headerSent: true,
975 _last: true,
976 _maxListeners: undefined,
977 _onPendingData: Function noopPendingOutput {},
978 _redirectable: Writable {
979 _currentRequest: [Circular],
980 _currentUrl: 'http://localhost:3000/request-validation?name=Zaiste',
981 _events: Object { … },
982 _eventsCount: 2,
983 _maxListeners: undefined,
984 _onNativeResponse: Function {},
985 _options: Object { … },
986 _redirectCount: 0,
987 _redirects: [],
988 _requestBodyBuffers: [],
989 _requestBodyLength: 0,
990 _writableState: WritableState [ … ],
991 writable: true,
992 },
993 _removedConnection: false,
994 _removedContLen: false,
995 _removedTE: false,
996 _trailer: '',
997 aborted: false,
998 agent: Agent {
999 _events: Object { … },
1000 _eventsCount: 1,
1001 _maxListeners: undefined,
1002 defaultPort: 80,
1003 freeSockets: {},
1004 keepAlive: false,
1005 keepAliveMsecs: 1000,
1006 maxFreeSockets: 256,
1007 maxSockets: Infinity,
1008 options: Object { … },
1009 protocol: 'http:',
1010 requests: {},
1011 sockets: Object { … },
1012 },
1013 chunkedEncoding: false,
1014 connection: Socket {
1015 _events: Object { … },
1016 _eventsCount: 6,
1017 _hadError: false,
1018 _host: 'localhost',
1019 _httpMessage: [Circular],
1020 _maxListeners: undefined,
1021 _parent: null,
1022 _pendingData: null,
1023 _pendingEncoding: '',
1024 _readableState: ReadableState [ … ],
1025 _server: null,
1026 _sockname: null,
1027 _writableState: WritableState [ … ],
1028 allowHalfOpen: false,
1029 connecting: false,
1030 parser: null,
1031 readable: true,
1032 server: null,
1033 writable: false,
1034 [Symbol(asyncId)]: 84,
1035 [Symbol(kHandle)]: TCP { … },
1036 [Symbol(lastWriteQueueSize)]: 0,
1037 [Symbol(timeout)]: null,
1038 [Symbol(kBuffer)]: null,
1039 [Symbol(kBufferCb)]: null,
1040 [Symbol(kBufferGen)]: null,
1041 [Symbol(kBytesRead)]: 0,
1042 [Symbol(kBytesWritten)]: 0,
1043 },
1044 finished: true,
1045 maxHeadersCount: null,
1046 method: 'GET',
1047 outputData: [],
1048 outputSize: 0,
1049 parser: null,
1050 path: '/request-validation?name=Zaiste',
1051 res: IncomingMessage {
1052 _consuming: false,
1053 _dumped: false,
1054 _events: Object { … },
1055 _eventsCount: 3,
1056 _maxListeners: undefined,
1057 _readableState: ReadableState [ … ],
1058 aborted: false,
1059 client: Socket { … },
1060 complete: true,
1061 connection: Socket { … },
1062 headers: Object { … },
1063 httpVersion: '1.1',
1064 httpVersionMajor: 1,
1065 httpVersionMinor: 1,
1066 method: null,
1067 rawHeaders: Array [ … ],
1068 rawTrailers: [],
1069 readable: false,
1070 redirects: [],
1071 req: [Circular],
1072 responseUrl: 'http://localhost:3000/request-validation?name=Zaiste',
1073 socket: Socket { … },
1074 statusCode: 500,
1075 statusMessage: 'Internal Server Error',
1076 trailers: {},
1077 upgrade: false,
1078 url: '',
1079 },
1080 sendDate: false,
1081 shouldKeepAlive: false,
1082 socket: Socket {
1083 _events: Object { … },
1084 _eventsCount: 6,
1085 _hadError: false,
1086 _host: 'localhost',
1087 _httpMessage: [Circular],
1088 _maxListeners: undefined,
1089 _parent: null,
1090 _pendingData: null,
1091 _pendingEncoding: '',
1092 _readableState: ReadableState [ … ],
1093 _server: null,
1094 _sockname: null,
1095 _writableState: WritableState [ … ],
1096 allowHalfOpen: false,
1097 connecting: false,
1098 parser: null,
1099 readable: true,
1100 server: null,
1101 writable: false,
1102 [Symbol(asyncId)]: 84,
1103 [Symbol(kHandle)]: TCP { … },
1104 [Symbol(lastWriteQueueSize)]: 0,
1105 [Symbol(timeout)]: null,
1106 [Symbol(kBuffer)]: null,
1107 [Symbol(kBufferCb)]: null,
1108 [Symbol(kBufferGen)]: null,
1109 [Symbol(kBytesRead)]: 0,
1110 [Symbol(kBytesWritten)]: 0,
1111 },
1112 socketPath: undefined,
1113 timeoutCb: null,
1114 upgradeOrConnect: false,
1115 useChunkedEncodingByDefault: false,
1116 writable: true,
1117 [Symbol(kNeedDrain)]: false,
1118 [Symbol(isCorked)]: false,
1119 [Symbol(kOutHeaders)]: {
1120 accept: Array [ … ],
1121 host: Array [ … ],
1122 'user-agent': Array [ … ],
1123 },
1124 },
1125 response: {
1126 config: {
1127 adapter: Function httpAdapter {},
1128 baseURL: 'http://localhost:3000',
1129 data: undefined,
1130 headers: Object { … },
1131 maxContentLength: -1,
1132 method: 'get',
1133 timeout: 0,
1134 transformRequest: Array [ … ],
1135 transformResponse: Array [ … ],
1136 url: 'http://localhost:3000/request-validation?name=Zaiste',
1137 validateStatus: Function validateStatus {},
1138 xsrfCookieName: 'XSRF-TOKEN',
1139 xsrfHeaderName: 'X-XSRF-TOKEN',
1140 },
1141 data: `<!DOCTYPE html>␊
1142 <html lang="en">␊
1143 <head>␊
1144 <meta charset="UTF-8">␊
1145 <title> </title>␊
1146
1147 <style type="text/css">␊
1148 /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript&plugins=line-highlight+line-numbers+toolbar+show-language */␊
1149 /**␊
1150 * prism.js default theme for JavaScript, CSS and HTML␊
1151 * Based on dabblet (http://dabblet.com)␊
1152 * @author Lea Verou␊
1153 */␊
1154 code[class*="language-"],␊
1155 pre[class*="language-"] {␊
1156 color: black;␊
1157 background: none;␊
1158 text-shadow: 0 1px white;␊
1159 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;␊
1160 text-align: left;␊
1161 white-space: pre;␊
1162 word-spacing: normal;␊
1163 word-break: normal;␊
1164 word-wrap: normal;␊
1165 line-height: 1.8;␊
1166
1167 -moz-tab-size: 4;␊
1168 -o-tab-size: 4;␊
1169 tab-size: 4;␊
1170
1171 -webkit-hyphens: none;␊
1172 -moz-hyphens: none;␊
1173 -ms-hyphens: none;␊
1174 hyphens: none;␊
1175 }␊
1176
1177 pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,␊
1178 code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {␊
1179 text-shadow: none;␊
1180 background: #b3d4fc;␊
1181 }␊
1182
1183 pre[class*="language-"]::selection, pre[class*="language-"] ::selection,␊
1184 code[class*="language-"]::selection, code[class*="language-"] ::selection {␊
1185 text-shadow: none;␊
1186 background: #b3d4fc;␊
1187 }␊
1188
1189 @media print {␊
1190 code[class*="language-"],␊
1191 pre[class*="language-"] {␊
1192 text-shadow: none;␊
1193 }␊
1194 }␊
1195
1196 /* Code blocks */␊
1197 pre[class*="language-"] {␊
1198 padding: 1em;␊
1199 margin: .5em 0;␊
1200 overflow: auto;␊
1201 }␊
1202
1203 :not(pre) > code[class*="language-"],␊
1204 pre[class*="language-"] {␊
1205 background: #f5f2f0;␊
1206 }␊
1207
1208 /* Inline code */␊
1209 :not(pre) > code[class*="language-"] {␊
1210 padding: .1em;␊
1211 border-radius: .3em;␊
1212 white-space: normal;␊
1213 }␊
1214
1215 .token.comment,␊
1216 .token.prolog,␊
1217 .token.doctype,␊
1218 .token.cdata {␊
1219 color: slategray;␊
1220 }␊
1221
1222 .token.punctuation {␊
1223 color: #999;␊
1224 }␊
1225
1226 .namespace {␊
1227 opacity: .7;␊
1228 }␊
1229
1230 .token.property,␊
1231 .token.tag,␊
1232 .token.boolean,␊
1233 .token.number,␊
1234 .token.constant,␊
1235 .token.symbol,␊
1236 .token.deleted {␊
1237 color: #905;␊
1238 }␊
1239
1240 .token.selector,␊
1241 .token.attr-name,␊
1242 .token.string,␊
1243 .token.char,␊
1244 .token.builtin,␊
1245 .token.inserted {␊
1246 color: #690;␊
1247 }␊
1248
1249 .token.operator,␊
1250 .token.entity,␊
1251 .token.url,␊
1252 .language-css .token.string,␊
1253 .style .token.string {␊
1254 color: #a67f59;␊
1255 background: hsla(0, 0%, 100%, .5);␊
1256 }␊
1257
1258 .token.atrule,␊
1259 .token.attr-value,␊
1260 .token.keyword {␊
1261 color: #07a;␊
1262 }␊
1263
1264 .token.function {␊
1265 color: #DD4A68;␊
1266 }␊
1267
1268 .token.regex,␊
1269 .token.important,␊
1270 .token.variable {␊
1271 color: #e90;␊
1272 }␊
1273
1274 .token.important,␊
1275 .token.bold {␊
1276 font-weight: bold;␊
1277 }␊
1278 .token.italic {␊
1279 font-style: italic;␊
1280 }␊
1281
1282 .token.entity {␊
1283 cursor: help;␊
1284 }␊
1285
1286 pre[data-line] {␊
1287 position: relative;␊
1288 padding: 1em 0 1em 3em;␊
1289 }␊
1290
1291 .line-highlight {␊
1292 position: absolute;␊
1293 left: 0;␊
1294 right: 0;␊
1295 padding: inherit 0;␊
1296 margin-top: 1em; /* Same as .prism’s padding-top */␊
1297
1298 background: hsla(24, 20%, 50%,.08);␊
1299 background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));␊
1300
1301 pointer-events: none;␊
1302
1303 line-height: inherit;␊
1304 white-space: pre;␊
1305 }␊
1306
1307 .line-highlight:before,␊
1308 .line-highlight[data-end]:after {␊
1309 content: attr(data-start);␊
1310 position: absolute;␊
1311 top: .6em;␊
1312 left: .4em;␊
1313 min-width: 1em;␊
1314 padding: 0 .5em;␊
1315 background-color: hsla(24, 20%, 50%,.4);␊
1316 color: hsl(24, 20%, 95%);␊
1317 font: bold 65%/1.5 sans-serif;␊
1318 text-align: center;␊
1319 vertical-align: .3em;␊
1320 border-radius: 999px;␊
1321 text-shadow: none;␊
1322 box-shadow: 0 1px white;␊
1323 }␊
1324
1325 .line-highlight[data-end]:after {␊
1326 content: attr(data-end);␊
1327 top: auto;␊
1328 bottom: .4em;␊
1329 }␊
1330
1331 pre.line-numbers {␊
1332 position: relative;␊
1333 padding-left: 3.8em;␊
1334 counter-reset: linenumber;␊
1335 }␊
1336
1337 pre.line-numbers > code {␊
1338 position: relative;␊
1339 display: block;␊
1340 }␊
1341
1342 .line-numbers .line-numbers-rows {␊
1343 position: absolute;␊
1344 pointer-events: none;␊
1345 top: 0;␊
1346 font-size: 100%;␊
1347 left: -3.0em;␊
1348 width: 3em; /* works for line-numbers below 1000 lines */␊
1349 letter-spacing: -1px;␊
1350 border-right: 1px solid #999;␊
1351
1352 -webkit-user-select: none;␊
1353 -moz-user-select: none;␊
1354 -ms-user-select: none;␊
1355 user-select: none;␊
1356
1357 }␊
1358
1359 .line-numbers-rows > span {␊
1360 pointer-events: none;␊
1361 display: block;␊
1362 counter-increment: linenumber;␊
1363 }␊
1364
1365 .line-numbers-rows > span:before {␊
1366 content: counter(linenumber);␊
1367 color: #999;␊
1368 display: block;␊
1369 padding-right: 0.8em;␊
1370 text-align: right;␊
1371 }␊
1372 pre.code-toolbar {␊
1373 position: relative;␊
1374 }␊
1375
1376 pre.code-toolbar > .toolbar {␊
1377 position: absolute;␊
1378 top: .3em;␊
1379 right: .2em;␊
1380 transition: opacity 0.3s ease-in-out;␊
1381 opacity: 0;␊
1382 }␊
1383
1384 pre.code-toolbar:hover > .toolbar {␊
1385 opacity: 1;␊
1386 }␊
1387
1388 pre.code-toolbar > .toolbar .toolbar-item {␊
1389 display: inline-block;␊
1390 }␊
1391
1392 pre.code-toolbar > .toolbar a {␊
1393 cursor: pointer;␊
1394 }␊
1395
1396 pre.code-toolbar > .toolbar button {␊
1397 background: none;␊
1398 border: 0;␊
1399 color: inherit;␊
1400 font: inherit;␊
1401 line-height: normal;␊
1402 overflow: visible;␊
1403 padding: 0;␊
1404 -webkit-user-select: none; /* for button */␊
1405 -moz-user-select: none;␊
1406 -ms-user-select: none;␊
1407 }␊
1408
1409 pre.code-toolbar > .toolbar a,␊
1410 pre.code-toolbar > .toolbar button,␊
1411 pre.code-toolbar > .toolbar span {␊
1412 color: #bbb;␊
1413 font-size: .8em;␊
1414 padding: 0 .5em;␊
1415 background: #f5f2f0;␊
1416 background: rgba(224, 224, 224, 0.2);␊
1417 box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);␊
1418 border-radius: .5em;␊
1419 }␊
1420
1421 pre.code-toolbar > .toolbar a:hover,␊
1422 pre.code-toolbar > .toolbar a:focus,␊
1423 pre.code-toolbar > .toolbar button:hover,␊
1424 pre.code-toolbar > .toolbar button:focus,␊
1425 pre.code-toolbar > .toolbar span:hover,␊
1426 pre.code-toolbar > .toolbar span:focus {␊
1427 color: inherit;␊
1428 text-decoration: none;␊
1429 }␊
1430
1431 * {␊
1432 padding: 0;␊
1433 margin: 0;␊
1434 }␊
1435
1436 html, body {␊
1437 height: 100%;␊
1438 width: 100%;␊
1439 }␊
1440
1441 body {␊
1442 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
1443 font-size: 16px;␊
1444 color: #545454;␊
1445 }␊
1446
1447 .container {␊
1448 display: flex;␊
1449 flex-direction: column;␊
1450 width: 100%;␊
1451 height: 100%;␊
1452 }␊
1453
1454 .main {␊
1455 background: #d9d9dd;␊
1456 padding: 2rem 4rem;␊
1457 box-sizing: border-box;␊
1458 }␊
1459
1460 .status-code {␊
1461 color: #ff2a26;␊
1462 font-size: 72px;␊
1463 opacity: 0.2;␊
1464 }␊
1465
1466 .message {␊
1467 font-weight: normal;␊
1468 font-size: 2.5em;␊
1469 }␊
1470
1471 .message small {␊
1472 color: #00B1EB;␊
1473 font-size: .65em;␊
1474 font-family: Menlo, SFMono-Regular, Monaco, "Fira Code", "Fira Mono", Consolas, "Liberation Mono", "Courier New", monospace;␊
1475 }␊
1476
1477 .frames {␊
1478 display: flex;␊
1479 }␊
1480
1481 .frame-preview {␊
1482 background: #fff;␊
1483 width: 50%;␊
1484 }␊
1485
1486 .frame-stack {␊
1487 flex: 1;␊
1488 box-sizing: border-box;␊
1489 }␊
1490
1491 .frames-list {␊
1492 overflow: auto;␊
1493 }␊
1494
1495 /* Request */␊
1496
1497 .request {␊
1498 padding: 50px 80px;␊
1499 }␊
1500
1501 .request .request-subsection {␊
1502 text-transform: uppercase;␊
1503 font-size: 18px;␊
1504 letter-spacing: 1px;␊
1505 padding: 0 5px 5px 5px;␊
1506 margin-bottom: 15px;␊
1507 }␊
1508
1509 .request table {␊
1510 width: 100%;␊
1511 border-collapse: collapse;␊
1512 margin-bottom: 80px;␊
1513 }␊
1514
1515 .request table td {␊
1516 padding: 6px 5px;␊
1517 font-size: 14px;␊
1518 letter-spacing: 0.4px;␊
1519 color: #455275;␊
1520 border-bottom: 1px solid #e8e8e8;␊
1521 word-break: break-word;␊
1522 }␊
1523
1524 .request table td.title {␊
1525 color: #999;␊
1526 width: 40%;␊
1527 font-size: 14px;␊
1528 font-weight: 600;␊
1529 text-transform: uppercase;␊
1530 }␊
1531
1532 .exception {␊
1533 background-color: #EFEFEF;␊
1534 padding: 2rem 4rem;␊
1535 border-top: 12px solid#00B1EB;␊
1536 }␊
1537
1538 .exception-name {␊
1539 color: #ff2a26;␊
1540 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
1541 font-size: 1.5em;␊
1542 opacity: .9;␊
1543 font-weight: bold;␊
1544 }␊
1545
1546 code[class*="language-"], pre[class*="language-"] {␊
1547 background: transparent;␊
1548 font-size: 18px;␊
1549 }␊
1550
1551 .line-numbers .line-numbers-rows {␊
1552 border: none;␊
1553 }␊
1554
1555 .frame-row {␊
1556 display: flex;␊
1557 justify-content: space-between;␊
1558 padding: 16px 32px 16px 32px;␊
1559 position: relative;␊
1560 cursor: pointer;␊
1561 transition: background 300ms ease;␊
1562 }␊
1563
1564 .frame-row.native-frame {␊
1565 opacity: 0.4;␊
1566 display: flex;␊
1567 }␊
1568
1569 .frame-row:after {␊
1570 content: "";␊
1571 background: #db5461;␊
1572 position: absolute;␊
1573 top: 50%;␊
1574 right: 8px;␊
1575 transform: translateY(-50%);␊
1576 height: 8px;␊
1577 width: 8px;␊
1578 border-radius: 24px;␊
1579 }␊
1580
1581 .frame-row:hover, .frame-row.active {␊
1582 background: #fff;␊
1583 }␊
1584
1585 .frame-row.active {␊
1586 opacity: 1;␊
1587 }␊
1588
1589 .frame-row-filepath {␊
1590 color: #455275;␊
1591 font-weight: 600;␊
1592 margin-right: 15px;␊
1593 }␊
1594
1595 .frame-context {␊
1596 display: none;␊
1597 }␊
1598
1599 .frame-row-code {␊
1600 color: #999;␊
1601 }␊
1602
1603 #frame-file-name {␊
1604 color: #455275;␊
1605 font-weight: 600;␊
1606 border-bottom: 1px solid #e8e8e8;␊
1607 padding: 16px 32px;␊
1608 }␊
1609
1610 #frame-function-name {␊
1611 color: #999;␊
1612 font-weight: 400;␊
1613 border-top: 1px solid #e8e8e8;␊
1614 padding: 16px 32px;␊
1615 }␊
1616
1617 @media only screen and (max-width: 970px) {␊
1618 .frames {␊
1619 flex-direction: column-reverse;␊
1620 }␊
1621
1622 .frame-preview {␊
1623 width: 100%;␊
1624 }␊
1625
1626 .frame-stack {␊
1627 width: 100%;␊
1628 }␊
1629 }␊
1630
1631 </style>␊
1632
1633 </head>␊
1634 <body>␊
1635 <section class="exception">␊
1636 <h2 class="exception-name">TypeError</h2>␊
1637 <h2 class="message"> The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined</h2>␊
1638 </section>␊
1639 <section class="container">␊
1640 <section class="main">␊
1641 <div class="frames">␊
1642
1643 <div class="frame-stack">␊
1644 <div class="frames-list">␊
1645
1646 <div class="frame-row active native-frame">␊
1647 <div class="frame-row-filepath">␊
1648 buffer.js:693:11␊
1649 </div>␊
1650 <div class="frame-row-code">␊
1651 Function.byteLength␊
1652 </div>␊
1653 <div class="frame-context"␊
1654 data-start=""␊
1655 data-line="693"␊
1656 data-file="buffer.js"␊
1657 data-method="Function.byteLength"␊
1658 data-line-column="693:11"␊
1659 >␊
1660
1661
1662 </div>␊
1663 </div>␊
1664
1665 <div class="frame-row ">␊
1666 <div class="frame-row-filepath">␊
1667 index.js:244:47␊
1668 </div>␊
1669 <div class="frame-row-code">␊
1670
1671 </div>␊
1672 <div class="frame-context"␊
1673 data-start="239"␊
1674 data-line="244"␊
1675 data-file="index.js"␊
1676 data-method=""␊
1677 data-line-column="244:47"␊
1678 > } else {␊
1679 if (!response.getHeader(&#39;Content-Type&#39;))␊
1680 response.setHeader(&#39;Content-Type&#39;, type || &#39;text&#x2F;plain&#39;);␊
1681 }␊
1682
1683 response.setHeader(&#39;Content-Length&#39;, Buffer.byteLength(str));␊
1684 response.end(str);␊
1685 };␊
1686
1687 const handleRequest &#x3D; async context &#x3D;&gt; {␊
1688 const { headers } &#x3D; context.request;␊
1689 </div>␊
1690 </div>␊
1691
1692 <div class="frame-row native-frame">␊
1693 <div class="frame-row-filepath">␊
1694 internal&#x2F;process&#x2F;task_queues.js:93:5␊
1695 </div>␊
1696 <div class="frame-row-code">␊
1697 processTicksAndRejections␊
1698 </div>␊
1699 <div class="frame-context"␊
1700 data-start=""␊
1701 data-line="93"␊
1702 data-file="internal&#x2F;process&#x2F;task_queues.js"␊
1703 data-method="processTicksAndRejections"␊
1704 data-line-column="93:5"␊
1705 >␊
1706
1707
1708 </div>␊
1709 </div>␊
1710 </div>␊
1711 </div>␊
1712
1713 <div class="frame-preview">␊
1714 <div id="frame-file-name"></div>␊
1715 <pre class="line-numbers"><code class="language-js" id="snippet"></code></pre>␊
1716 <div id="frame-function-name"></div>␊
1717 </div>␊
1718 </div>␊
1719 </section>␊
1720
1721 <section class="request">␊
1722 <h2 class="request-subsection">Request</h2>␊
1723 <table>␊
1724 <tr>␊
1725 <td class="title">URL</td>␊
1726 <td>&#x2F;request-validation?name&#x3D;Zaiste</td>␊
1727 </tr>␊
1728
1729 <tr>␊
1730 <td class="title">Method</td>␊
1731 <td>GET</td>␊
1732 </tr>␊
1733 </table>␊
1734
1735 <h2 class="request-subsection">Headers</h2>␊
1736 <table>␊
1737 <tr>␊
1738 <td class="title"> ACCEPT </td>␊
1739 <td> application&#x2F;json, text&#x2F;plain, *&#x2F;* </td>␊
1740 </tr>␊
1741 <tr>␊
1742 <td class="title"> USER-AGENT </td>␊
1743 <td> axios&#x2F;0.19.0 </td>␊
1744 </tr>␊
1745 <tr>␊
1746 <td class="title"> HOST </td>␊
1747 <td> localhost:3000 </td>␊
1748 </tr>␊
1749 </table>␊
1750
1751 <h2 class="request-subsection">Cookies</h2>␊
1752 <table>␊
1753 </table>␊
1754 </section>␊
1755 </section>␊
1756 <script type="text/javascript">␊
1757 var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var l=/\\blang(?:uage)?-(\\w+)\\b/i,t=0,L=_self.Prism={util:{encode:function(e){return e instanceof s?new s(e.type,L.util.encode(e.content),e.alias):"Array"===L.util.type(e)?e.map(L.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\\[object (\\w+)\\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(L.util.type(e)){case"Object":var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=L.util.clone(e[n]));return t;case"Array":return e.map&&e.map(function(e){return L.util.clone(e)})}return e}},languages:{extend:function(e,t){var n=L.util.clone(L.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(n,e,t,a){var r=(a=a||L.languages)[n];if(2==arguments.length){for(var i in t=e)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var s={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);s[o]=r[o]}return L.languages.DFS(L.languages,function(e,t){t===a[n]&&e!=n&&(this[e]=s)}),a[n]=s},DFS:function(e,t,n,a){for(var r in a=a||{},e)e.hasOwnProperty(r)&&(t.call(e,r,e[r],n||r),"Object"!==L.util.type(e[r])||a[L.util.objId(e[r])]?"Array"!==L.util.type(e[r])||a[L.util.objId(e[r])]||(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,r,a)):(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,null,a)))}},plugins:{},highlightAll:function(e,t){var n={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};L.hooks.run("before-highlightall",n);for(var a,r=n.elements||document.querySelectorAll(n.selector),i=0;a=r[i++];)L.highlightElement(a,!0===e,n.callback)},highlightElement:function(e,t,n){for(var a,r,i=e;i&&!l.test(i.className);)i=i.parentNode;i&&(a=(i.className.match(l)||[,""])[1].toLowerCase(),r=L.languages[a]),e.className=e.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a,i=e.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a);var s={element:e,language:a,grammar:r,code:e.textContent};if(L.hooks.run("before-sanity-check",s),!s.code||!s.grammar)return s.code&&(s.element.textContent=s.code),void L.hooks.run("complete",s);if(L.hooks.run("before-highlight",s),t&&_self.Worker){var o=new Worker(L.filename);o.onmessage=function(e){s.highlightedCode=e.data,L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(s.element),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},o.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else s.highlightedCode=L.highlight(s.code,s.grammar,s.language),L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(e),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},highlight:function(e,t,n){var a=L.tokenize(e,t);return s.stringify(L.util.encode(a),n)},tokenize:function(e,t){var n=L.Token,a=[e],r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}e:for(var i in t)if(t.hasOwnProperty(i)&&t[i]){var s=t[i];s="Array"===L.util.type(s)?s:[s];for(var o=0;o<s.length;++o){var l=s[o],u=l.inside,c=!!l.lookbehind,d=!!l.greedy,p=0,g=l.alias;if(d&&!l.pattern.global){var m=l.pattern.toString().match(/[imuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+"g")}l=l.pattern||l;for(var f=0,h=0;f<a.length;h+=a[f].length,++f){var b=a[f];if(a.length>e.length)break e;if(!(b instanceof n)){l.lastIndex=0;var y=1;if(!(S=l.exec(b))&&d&&f!=a.length-1){if(l.lastIndex=h,!(S=l.exec(e)))break;for(var v=S.index+(c?S[1].length:0),w=S.index+S[0].length,k=f,A=h,P=a.length;k<P&&A<w;++k)(A+=a[k].length)<=v&&(++f,h=A);if(a[f]instanceof n||a[k-1].greedy)continue;y=k-f,b=e.slice(h,A),S.index-=h}if(S){c&&(p=S[1].length);w=(v=S.index+p)+(S=S[0].slice(p)).length;var S,x=b.slice(0,v),N=b.slice(w),E=[f,y];x&&E.push(x);var C=new n(i,u?L.tokenize(S,u):S,g,S,d);E.push(C),N&&E.push(N),Array.prototype.splice.apply(a,E)}}}}}return a},hooks:{all:{},add:function(e,t){var n=L.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=L.hooks.all[e];if(n&&n.length)for(var a,r=0;a=n[r++];)a(t)}}},s=L.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length,this.greedy=!!r};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===L.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if("comment"==a.type&&(a.attributes.spellcheck="true"),t.alias){var r="Array"===L.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}L.hooks.run("wrap",a);var i=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(i?" "+i:"")+">"+a.content+"</"+a.tag+">"},!_self.document)return _self.addEventListener&&_self.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,a=t.code,r=t.immediateClose;_self.postMessage(L.highlight(a,L.languages[n],n)),r&&_self.close()},!1),_self.Prism;var e=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return e&&(L.filename=e.src,document.addEventListener&&!e.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(L.highlightAll):window.setTimeout(L.highlightAll,16):document.addEventListener("DOMContentLoaded",L.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\\w\\W]*?-->/,prolog:/<\\?[\\w\\W]+?\\?>/,doctype:/<!DOCTYPE[\\w\\W]+?>/i,cdata:/<!\\[CDATA\\[[\\w\\W]*?]]>/i,tag:{pattern:/<\\/?(?!\\d)[^\\s>\\/=$<]+(?:\\s+[^\\s>\\/=]+(?:=(?:("|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\1|[^\\s'">=]+))?)*\\s*\\/?>/i,inside:{tag:{pattern:/^<\\/?[^\\s>\\/]+/i,inside:{punctuation:/^<\\/?/,namespace:/^[^\\s>\\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\\w\\W]*?(\\1)|[^\\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\\/?>/,"attr-name":{pattern:/[^\\s>\\/]+/,inside:{namespace:/^[^\\s>\\/:]+:/}}}},entity:/&#?[\\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\\/\\*[\\w\\W]*?\\*\\//,atrule:{pattern:/@[\\w-]+?.*?(;|(?=\\s*\\{))/i,inside:{rule:/@[\\w-]+/}},url:/url\\((?:(["'])(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1|.*?)\\)/i,selector:/[^\\{\\}\\s][^\\{\\};]*?(?=\\s*\\{)/,string:{pattern:/("|')(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},property:/(\\b|\\B)[\\w-]+(?=\\s*:)/i,important:/\\B!important\\b/i,function:/[-a-z0-9]+(?=\\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\\w\\W]*?>)[\\w\\W]*?(?=<\\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\\s*style=("|').*?\\1/i,inside:{"attr-name":{pattern:/^\\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\\s*=\\s*['"]|['"]\\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\\\])\\/\\*[\\w\\W]*?\\*\\//,lookbehind:!0},{pattern:/(^|[^\\\\:])\\/\\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},"class-name":{pattern:/((?:\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+)|(?:catch\\s+\\())[a-z0-9_\\.\\\\]+/i,lookbehind:!0,inside:{punctuation:/(\\.|\\\\)/}},keyword:/\\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,boolean:/\\b(true|false)\\b/,function:/[a-z0-9_]+(?=\\()/i,number:/\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)\\b/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*|\\/|~|\\^|%/,punctuation:/[{}[\\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\\b/,number:/\\b-?(0x[\\dA-Fa-f]+|0b[01]+|0o[0-7]+|\\d*\\.?\\d+([Ee][+-]?\\d+)?|NaN|Infinity)\\b/,function:/[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*(?=\\()/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*\\*?|\\/|~|\\^|%|\\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\\/])\\/(?!\\/)(\\[.+?]|\\\\.|[^\\/\\\\\\r\\n])+\\/[gimyu]{0,5}(?=\\s*($|[\\r\\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\\\\\|\\\\?[^\\\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\\$\\{[^}]+\\}/,inside:{"interpolation-punctuation":{pattern:/^\\$\\{|\\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\\s\\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\\w\\W]*?>)[\\w\\W]*?(?=<\\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript,function(){function r(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function d(e,t){return t=" "+t+" ",-1<(" "+e.className+" ").replace(/[\\n\\t]/g," ").indexOf(t)}function i(e,t,n){for(var a,r=t.replace(/\\s+/g,"").split(","),i=+e.getAttribute("data-line-offset")||0,s=(p()?parseInt:parseFloat)(getComputedStyle(e).lineHeight),o=0;a=r[o++];){var l=+(a=a.split("-"))[0],u=+a[1]||l,c=document.createElement("div");c.textContent=Array(u-l+2).join(" \\n"),c.setAttribute("aria-hidden","true"),c.className=(n||"")+" line-highlight",d(e,"line-numbers")||(c.setAttribute("data-start",l),l<u&&c.setAttribute("data-end",u)),c.style.top=(l-i-1)*s+"px",d(e,"line-numbers")?e.appendChild(c):(e.querySelector("code")||e).appendChild(c)}}function a(){var e=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var t=(e.match(/\\.([\\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),a=document.getElementById(n);a&&(a.hasAttribute("data-line")||a.setAttribute("data-line",""),i(a,t,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var p=function(){if(void 0===t){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(e),t=38===e.offsetHeight,document.body.removeChild(e)}return t},s=0;Prism.hooks.add("complete",function(e){var t=e.element.parentNode,n=t&&t.getAttribute("data-line");t&&n&&/pre/i.test(t.nodeName)&&(clearTimeout(s),r(".line-highlight",t).forEach(function(e){e.parentNode.removeChild(e)}),i(t,n),s=setTimeout(a,1))}),window.addEventListener&&window.addEventListener("hashchange",a)}var t}(),"undefined"!=typeof self&&self.Prism&&self.document&&Prism.hooks.add("complete",function(e){if(e.code){var t=e.element.parentNode,n=/\\s*\\bline-numbers\\b\\s*/;if(t&&/pre/i.test(t.nodeName)&&(n.test(t.className)||n.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){n.test(e.element.className)&&(e.element.className=e.element.className.replace(n,"")),n.test(t.className)||(t.className+=" line-numbers");var a,r=e.code.match(/\\n(?!$)/g),i=r?r.length+1:1,s=new Array(i+1);s=s.join("<span></span>"),(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=s,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(a)}}}),function(){if("undefined"!=typeof self&&self.Prism&&self.document){function t(){}var i=[],s={};Prism.plugins.toolbar={};var e=Prism.plugins.toolbar.registerButton=function(e,n){var t;t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),t.textContent=n.text,t},i.push(s[e]=t)},n=Prism.plugins.toolbar.hook=function(a){var e=a.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&!e.classList.contains("code-toolbar")){e.classList.add("code-toolbar");var r=document.createElement("div");r.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(i=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return s[e]||t})),i.forEach(function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),r.appendChild(n)}}),e.appendChild(r)}};e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",n)}}(),function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Show Languages plugin loaded before Toolbar plugin.");var r={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",asciidoc:"AsciiDoc",aspnet:"ASP.NET (C#)",autoit:"AutoIt",autohotkey:"AutoHotkey",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript","css-extras":"CSS Extras",fsharp:"F#",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",inform7:"Inform 7",json:"JSON",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE",matlab:"MATLAB",mel:"MEL",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",parigp:"PARI/GP",php:"PHP","php-extras":"PHP Extras",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",jsx:"React JSX",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",typescript:"TypeScript",vhdl:"VHDL",vim:"vim",wiki:"Wiki markup",xojo:"Xojo (REALbasic)",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)){var n=t.getAttribute("data-language")||r[e.language]||e.language.substring(0,1).toUpperCase()+e.language.substring(1),a=document.createElement("span");return a.textContent=n,a}})}}(),window.onload=function(e){function t(e){var t=e.querySelector(".frame-context"),n=t.innerHTML;n=0===n.trim().length?"Stack frames not available":n;var a=t.getAttribute("data-line"),r=t.getAttribute("data-start"),i=t.getAttribute("data-file"),s=t.getAttribute("data-method"),o=t.getAttribute("data-line-column");document.getElementById("snippet").parentNode.setAttribute("data-line",a),document.getElementById("snippet").parentNode.setAttribute("data-start",r),document.getElementById("snippet").parentNode.setAttribute("data-line-offset",Number(r)-1),document.getElementById("snippet").innerHTML=n,document.getElementById("frame-file-name").innerHTML=i,document.getElementById("frame-function-name").innerHTML=s+" "+o,window.Prism.highlightAll()}var n=document.querySelector(".frame-row.active");document.querySelectorAll(".frame-row").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".frame-row.active").classList.remove("active"),this.classList.add("active"),t(this)})}),t(n)};␊
1758 </script>␊
1759 </body>␊
1760 </html>␊
1761 `,
1762 headers: {
1763 connection: 'close',
1764 'content-type': 'text/html',
1765 date: 'Thu, 03 Oct 2019 09:50:37 GMT',
1766 'transfer-encoding': 'chunked',
1767 },
1768 request: ClientRequest {
1769 _contentLength: 0,
1770 _ended: true,
1771 _events: Object { … },
1772 _eventsCount: 6,
1773 _hasBody: true,
1774 _header: `GET /request-validation?name=Zaiste HTTP/1.1␍␊
1775 Accept: application/json, text/plain, */*␍␊
1776 User-Agent: axios/0.19.0␍␊
1777 Host: localhost:3000␍␊
1778 Connection: close␍␊
1779 ␍␊
1780 `,
1781 _headerSent: true,
1782 _last: true,
1783 _maxListeners: undefined,
1784 _onPendingData: Function noopPendingOutput {},
1785 _redirectable: Writable { … },
1786 _removedConnection: false,
1787 _removedContLen: false,
1788 _removedTE: false,
1789 _trailer: '',
1790 aborted: false,
1791 agent: Agent { … },
1792 chunkedEncoding: false,
1793 connection: Socket { … },
1794 finished: true,
1795 maxHeadersCount: null,
1796 method: 'GET',
1797 outputData: [],
1798 outputSize: 0,
1799 parser: null,
1800 path: '/request-validation?name=Zaiste',
1801 res: IncomingMessage { … },
1802 sendDate: false,
1803 shouldKeepAlive: false,
1804 socket: Socket { … },
1805 socketPath: undefined,
1806 timeoutCb: null,
1807 upgradeOrConnect: false,
1808 useChunkedEncodingByDefault: false,
1809 writable: true,
1810 [Symbol(kNeedDrain)]: false,
1811 [Symbol(isCorked)]: false,
1812 [Symbol(kOutHeaders)]: Object { … },
1813 },
1814 status: 500,
1815 statusText: 'Internal Server Error',
1816 },
1817 toJSON: Function {},
1818 message: 'Request failed with status code 500',
1819 }
1820
1821 createError (node_modules/axios/lib/core/createError.js:16:15)
1822 settle (node_modules/axios/lib/core/settle.js:17:12)
1823 IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:237:11)
1824
1825
1826
1827 built-in validation strips undefined params
1828
1829 /Users/zaiste/code/huncwotjs/huncwot/node_modules/axios/lib/core/createError.js:16
1830
1831 Rejected promise returned by test. Reason:
1832
1833 Error {
1834 config: {
1835 adapter: Function httpAdapter {},
1836 baseURL: 'http://localhost:3000',
1837 data: undefined,
1838 headers: {
1839 Accept: 'application/json, text/plain, */*',
1840 'User-Agent': 'axios/0.19.0',
1841 },
1842 maxContentLength: -1,
1843 method: 'get',
1844 timeout: 0,
1845 transformRequest: [
1846 Function transformRequest {},
1847 ],
1848 transformResponse: [
1849 Function transformResponse {},
1850 ],
1851 url: 'http://localhost:3000/request-validation?name=Zaiste&admin=true',
1852 validateStatus: Function validateStatus {},
1853 xsrfCookieName: 'XSRF-TOKEN',
1854 xsrfHeaderName: 'X-XSRF-TOKEN',
1855 },
1856 isAxiosError: true,
1857 request: ClientRequest {
1858 _contentLength: 0,
1859 _ended: true,
1860 _events: {
1861 abort: Function {},
1862 aborted: Function {},
1863 error: Function {},
1864 prefinish: Function requestOnPrefinish {},
1865 socket: Function {},
1866 timeout: Function {},
1867 },
1868 _eventsCount: 6,
1869 _hasBody: true,
1870 _header: `GET /request-validation?name=Zaiste&admin=true HTTP/1.1␍␊
1871 Accept: application/json, text/plain, */*␍␊
1872 User-Agent: axios/0.19.0␍␊
1873 Host: localhost:3000␍␊
1874 Connection: close␍␊
1875 ␍␊
1876 `,
1877 _headerSent: true,
1878 _last: true,
1879 _maxListeners: undefined,
1880 _onPendingData: Function noopPendingOutput {},
1881 _redirectable: Writable {
1882 _currentRequest: [Circular],
1883 _currentUrl: 'http://localhost:3000/request-validation?name=Zaiste&admin=true',
1884 _events: Object { … },
1885 _eventsCount: 2,
1886 _maxListeners: undefined,
1887 _onNativeResponse: Function {},
1888 _options: Object { … },
1889 _redirectCount: 0,
1890 _redirects: [],
1891 _requestBodyBuffers: [],
1892 _requestBodyLength: 0,
1893 _writableState: WritableState [ … ],
1894 writable: true,
1895 },
1896 _removedConnection: false,
1897 _removedContLen: false,
1898 _removedTE: false,
1899 _trailer: '',
1900 aborted: false,
1901 agent: Agent {
1902 _events: Object { … },
1903 _eventsCount: 1,
1904 _maxListeners: undefined,
1905 defaultPort: 80,
1906 freeSockets: {},
1907 keepAlive: false,
1908 keepAliveMsecs: 1000,
1909 maxFreeSockets: 256,
1910 maxSockets: Infinity,
1911 options: Object { … },
1912 protocol: 'http:',
1913 requests: {},
1914 sockets: Object { … },
1915 },
1916 chunkedEncoding: false,
1917 connection: Socket {
1918 _events: Object { … },
1919 _eventsCount: 6,
1920 _hadError: false,
1921 _host: 'localhost',
1922 _httpMessage: [Circular],
1923 _maxListeners: undefined,
1924 _parent: null,
1925 _pendingData: null,
1926 _pendingEncoding: '',
1927 _readableState: ReadableState [ … ],
1928 _server: null,
1929 _sockname: null,
1930 _writableState: WritableState [ … ],
1931 allowHalfOpen: false,
1932 connecting: false,
1933 parser: null,
1934 readable: true,
1935 server: null,
1936 writable: false,
1937 [Symbol(asyncId)]: 87,
1938 [Symbol(kHandle)]: TCP { … },
1939 [Symbol(lastWriteQueueSize)]: 0,
1940 [Symbol(timeout)]: null,
1941 [Symbol(kBuffer)]: null,
1942 [Symbol(kBufferCb)]: null,
1943 [Symbol(kBufferGen)]: null,
1944 [Symbol(kBytesRead)]: 0,
1945 [Symbol(kBytesWritten)]: 0,
1946 },
1947 finished: true,
1948 maxHeadersCount: null,
1949 method: 'GET',
1950 outputData: [],
1951 outputSize: 0,
1952 parser: null,
1953 path: '/request-validation?name=Zaiste&admin=true',
1954 res: IncomingMessage {
1955 _consuming: false,
1956 _dumped: false,
1957 _events: Object { … },
1958 _eventsCount: 3,
1959 _maxListeners: undefined,
1960 _readableState: ReadableState [ … ],
1961 aborted: false,
1962 client: Socket { … },
1963 complete: true,
1964 connection: Socket { … },
1965 headers: Object { … },
1966 httpVersion: '1.1',
1967 httpVersionMajor: 1,
1968 httpVersionMinor: 1,
1969 method: null,
1970 rawHeaders: Array [ … ],
1971 rawTrailers: [],
1972 readable: false,
1973 redirects: [],
1974 req: [Circular],
1975 responseUrl: 'http://localhost:3000/request-validation?name=Zaiste&admin=true',
1976 socket: Socket { … },
1977 statusCode: 500,
1978 statusMessage: 'Internal Server Error',
1979 trailers: {},
1980 upgrade: false,
1981 url: '',
1982 },
1983 sendDate: false,
1984 shouldKeepAlive: false,
1985 socket: Socket {
1986 _events: Object { … },
1987 _eventsCount: 6,
1988 _hadError: false,
1989 _host: 'localhost',
1990 _httpMessage: [Circular],
1991 _maxListeners: undefined,
1992 _parent: null,
1993 _pendingData: null,
1994 _pendingEncoding: '',
1995 _readableState: ReadableState [ … ],
1996 _server: null,
1997 _sockname: null,
1998 _writableState: WritableState [ … ],
1999 allowHalfOpen: false,
2000 connecting: false,
2001 parser: null,
2002 readable: true,
2003 server: null,
2004 writable: false,
2005 [Symbol(asyncId)]: 87,
2006 [Symbol(kHandle)]: TCP { … },
2007 [Symbol(lastWriteQueueSize)]: 0,
2008 [Symbol(timeout)]: null,
2009 [Symbol(kBuffer)]: null,
2010 [Symbol(kBufferCb)]: null,
2011 [Symbol(kBufferGen)]: null,
2012 [Symbol(kBytesRead)]: 0,
2013 [Symbol(kBytesWritten)]: 0,
2014 },
2015 socketPath: undefined,
2016 timeoutCb: null,
2017 upgradeOrConnect: false,
2018 useChunkedEncodingByDefault: false,
2019 writable: true,
2020 [Symbol(kNeedDrain)]: false,
2021 [Symbol(isCorked)]: false,
2022 [Symbol(kOutHeaders)]: {
2023 accept: Array [ … ],
2024 host: Array [ … ],
2025 'user-agent': Array [ … ],
2026 },
2027 },
2028 response: {
2029 config: {
2030 adapter: Function httpAdapter {},
2031 baseURL: 'http://localhost:3000',
2032 data: undefined,
2033 headers: Object { … },
2034 maxContentLength: -1,
2035 method: 'get',
2036 timeout: 0,
2037 transformRequest: Array [ … ],
2038 transformResponse: Array [ … ],
2039 url: 'http://localhost:3000/request-validation?name=Zaiste&admin=true',
2040 validateStatus: Function validateStatus {},
2041 xsrfCookieName: 'XSRF-TOKEN',
2042 xsrfHeaderName: 'X-XSRF-TOKEN',
2043 },
2044 data: `<!DOCTYPE html>␊
2045 <html lang="en">␊
2046 <head>␊
2047 <meta charset="UTF-8">␊
2048 <title> </title>␊
2049
2050 <style type="text/css">␊
2051 /* http://prismjs.com/download.html?themes=prism&languages=markup+css+clike+javascript&plugins=line-highlight+line-numbers+toolbar+show-language */␊
2052 /**␊
2053 * prism.js default theme for JavaScript, CSS and HTML␊
2054 * Based on dabblet (http://dabblet.com)␊
2055 * @author Lea Verou␊
2056 */␊
2057 code[class*="language-"],␊
2058 pre[class*="language-"] {␊
2059 color: black;␊
2060 background: none;␊
2061 text-shadow: 0 1px white;␊
2062 font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;␊
2063 text-align: left;␊
2064 white-space: pre;␊
2065 word-spacing: normal;␊
2066 word-break: normal;␊
2067 word-wrap: normal;␊
2068 line-height: 1.8;␊
2069
2070 -moz-tab-size: 4;␊
2071 -o-tab-size: 4;␊
2072 tab-size: 4;␊
2073
2074 -webkit-hyphens: none;␊
2075 -moz-hyphens: none;␊
2076 -ms-hyphens: none;␊
2077 hyphens: none;␊
2078 }␊
2079
2080 pre[class*="language-"]::-moz-selection, pre[class*="language-"] ::-moz-selection,␊
2081 code[class*="language-"]::-moz-selection, code[class*="language-"] ::-moz-selection {␊
2082 text-shadow: none;␊
2083 background: #b3d4fc;␊
2084 }␊
2085
2086 pre[class*="language-"]::selection, pre[class*="language-"] ::selection,␊
2087 code[class*="language-"]::selection, code[class*="language-"] ::selection {␊
2088 text-shadow: none;␊
2089 background: #b3d4fc;␊
2090 }␊
2091
2092 @media print {␊
2093 code[class*="language-"],␊
2094 pre[class*="language-"] {␊
2095 text-shadow: none;␊
2096 }␊
2097 }␊
2098
2099 /* Code blocks */␊
2100 pre[class*="language-"] {␊
2101 padding: 1em;␊
2102 margin: .5em 0;␊
2103 overflow: auto;␊
2104 }␊
2105
2106 :not(pre) > code[class*="language-"],␊
2107 pre[class*="language-"] {␊
2108 background: #f5f2f0;␊
2109 }␊
2110
2111 /* Inline code */␊
2112 :not(pre) > code[class*="language-"] {␊
2113 padding: .1em;␊
2114 border-radius: .3em;␊
2115 white-space: normal;␊
2116 }␊
2117
2118 .token.comment,␊
2119 .token.prolog,␊
2120 .token.doctype,␊
2121 .token.cdata {␊
2122 color: slategray;␊
2123 }␊
2124
2125 .token.punctuation {␊
2126 color: #999;␊
2127 }␊
2128
2129 .namespace {␊
2130 opacity: .7;␊
2131 }␊
2132
2133 .token.property,␊
2134 .token.tag,␊
2135 .token.boolean,␊
2136 .token.number,␊
2137 .token.constant,␊
2138 .token.symbol,␊
2139 .token.deleted {␊
2140 color: #905;␊
2141 }␊
2142
2143 .token.selector,␊
2144 .token.attr-name,␊
2145 .token.string,␊
2146 .token.char,␊
2147 .token.builtin,␊
2148 .token.inserted {␊
2149 color: #690;␊
2150 }␊
2151
2152 .token.operator,␊
2153 .token.entity,␊
2154 .token.url,␊
2155 .language-css .token.string,␊
2156 .style .token.string {␊
2157 color: #a67f59;␊
2158 background: hsla(0, 0%, 100%, .5);␊
2159 }␊
2160
2161 .token.atrule,␊
2162 .token.attr-value,␊
2163 .token.keyword {␊
2164 color: #07a;␊
2165 }␊
2166
2167 .token.function {␊
2168 color: #DD4A68;␊
2169 }␊
2170
2171 .token.regex,␊
2172 .token.important,␊
2173 .token.variable {␊
2174 color: #e90;␊
2175 }␊
2176
2177 .token.important,␊
2178 .token.bold {␊
2179 font-weight: bold;␊
2180 }␊
2181 .token.italic {␊
2182 font-style: italic;␊
2183 }␊
2184
2185 .token.entity {␊
2186 cursor: help;␊
2187 }␊
2188
2189 pre[data-line] {␊
2190 position: relative;␊
2191 padding: 1em 0 1em 3em;␊
2192 }␊
2193
2194 .line-highlight {␊
2195 position: absolute;␊
2196 left: 0;␊
2197 right: 0;␊
2198 padding: inherit 0;␊
2199 margin-top: 1em; /* Same as .prism’s padding-top */␊
2200
2201 background: hsla(24, 20%, 50%,.08);␊
2202 background: linear-gradient(to right, hsla(24, 20%, 50%,.1) 70%, hsla(24, 20%, 50%,0));␊
2203
2204 pointer-events: none;␊
2205
2206 line-height: inherit;␊
2207 white-space: pre;␊
2208 }␊
2209
2210 .line-highlight:before,␊
2211 .line-highlight[data-end]:after {␊
2212 content: attr(data-start);␊
2213 position: absolute;␊
2214 top: .6em;␊
2215 left: .4em;␊
2216 min-width: 1em;␊
2217 padding: 0 .5em;␊
2218 background-color: hsla(24, 20%, 50%,.4);␊
2219 color: hsl(24, 20%, 95%);␊
2220 font: bold 65%/1.5 sans-serif;␊
2221 text-align: center;␊
2222 vertical-align: .3em;␊
2223 border-radius: 999px;␊
2224 text-shadow: none;␊
2225 box-shadow: 0 1px white;␊
2226 }␊
2227
2228 .line-highlight[data-end]:after {␊
2229 content: attr(data-end);␊
2230 top: auto;␊
2231 bottom: .4em;␊
2232 }␊
2233
2234 pre.line-numbers {␊
2235 position: relative;␊
2236 padding-left: 3.8em;␊
2237 counter-reset: linenumber;␊
2238 }␊
2239
2240 pre.line-numbers > code {␊
2241 position: relative;␊
2242 display: block;␊
2243 }␊
2244
2245 .line-numbers .line-numbers-rows {␊
2246 position: absolute;␊
2247 pointer-events: none;␊
2248 top: 0;␊
2249 font-size: 100%;␊
2250 left: -3.0em;␊
2251 width: 3em; /* works for line-numbers below 1000 lines */␊
2252 letter-spacing: -1px;␊
2253 border-right: 1px solid #999;␊
2254
2255 -webkit-user-select: none;␊
2256 -moz-user-select: none;␊
2257 -ms-user-select: none;␊
2258 user-select: none;␊
2259
2260 }␊
2261
2262 .line-numbers-rows > span {␊
2263 pointer-events: none;␊
2264 display: block;␊
2265 counter-increment: linenumber;␊
2266 }␊
2267
2268 .line-numbers-rows > span:before {␊
2269 content: counter(linenumber);␊
2270 color: #999;␊
2271 display: block;␊
2272 padding-right: 0.8em;␊
2273 text-align: right;␊
2274 }␊
2275 pre.code-toolbar {␊
2276 position: relative;␊
2277 }␊
2278
2279 pre.code-toolbar > .toolbar {␊
2280 position: absolute;␊
2281 top: .3em;␊
2282 right: .2em;␊
2283 transition: opacity 0.3s ease-in-out;␊
2284 opacity: 0;␊
2285 }␊
2286
2287 pre.code-toolbar:hover > .toolbar {␊
2288 opacity: 1;␊
2289 }␊
2290
2291 pre.code-toolbar > .toolbar .toolbar-item {␊
2292 display: inline-block;␊
2293 }␊
2294
2295 pre.code-toolbar > .toolbar a {␊
2296 cursor: pointer;␊
2297 }␊
2298
2299 pre.code-toolbar > .toolbar button {␊
2300 background: none;␊
2301 border: 0;␊
2302 color: inherit;␊
2303 font: inherit;␊
2304 line-height: normal;␊
2305 overflow: visible;␊
2306 padding: 0;␊
2307 -webkit-user-select: none; /* for button */␊
2308 -moz-user-select: none;␊
2309 -ms-user-select: none;␊
2310 }␊
2311
2312 pre.code-toolbar > .toolbar a,␊
2313 pre.code-toolbar > .toolbar button,␊
2314 pre.code-toolbar > .toolbar span {␊
2315 color: #bbb;␊
2316 font-size: .8em;␊
2317 padding: 0 .5em;␊
2318 background: #f5f2f0;␊
2319 background: rgba(224, 224, 224, 0.2);␊
2320 box-shadow: 0 2px 0 0 rgba(0,0,0,0.2);␊
2321 border-radius: .5em;␊
2322 }␊
2323
2324 pre.code-toolbar > .toolbar a:hover,␊
2325 pre.code-toolbar > .toolbar a:focus,␊
2326 pre.code-toolbar > .toolbar button:hover,␊
2327 pre.code-toolbar > .toolbar button:focus,␊
2328 pre.code-toolbar > .toolbar span:hover,␊
2329 pre.code-toolbar > .toolbar span:focus {␊
2330 color: inherit;␊
2331 text-decoration: none;␊
2332 }␊
2333
2334 * {␊
2335 padding: 0;␊
2336 margin: 0;␊
2337 }␊
2338
2339 html, body {␊
2340 height: 100%;␊
2341 width: 100%;␊
2342 }␊
2343
2344 body {␊
2345 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
2346 font-size: 16px;␊
2347 color: #545454;␊
2348 }␊
2349
2350 .container {␊
2351 display: flex;␊
2352 flex-direction: column;␊
2353 width: 100%;␊
2354 height: 100%;␊
2355 }␊
2356
2357 .main {␊
2358 background: #d9d9dd;␊
2359 padding: 2rem 4rem;␊
2360 box-sizing: border-box;␊
2361 }␊
2362
2363 .status-code {␊
2364 color: #ff2a26;␊
2365 font-size: 72px;␊
2366 opacity: 0.2;␊
2367 }␊
2368
2369 .message {␊
2370 font-weight: normal;␊
2371 font-size: 2.5em;␊
2372 }␊
2373
2374 .message small {␊
2375 color: #00B1EB;␊
2376 font-size: .65em;␊
2377 font-family: Menlo, SFMono-Regular, Monaco, "Fira Code", "Fira Mono", Consolas, "Liberation Mono", "Courier New", monospace;␊
2378 }␊
2379
2380 .frames {␊
2381 display: flex;␊
2382 }␊
2383
2384 .frame-preview {␊
2385 background: #fff;␊
2386 width: 50%;␊
2387 }␊
2388
2389 .frame-stack {␊
2390 flex: 1;␊
2391 box-sizing: border-box;␊
2392 }␊
2393
2394 .frames-list {␊
2395 overflow: auto;␊
2396 }␊
2397
2398 /* Request */␊
2399
2400 .request {␊
2401 padding: 50px 80px;␊
2402 }␊
2403
2404 .request .request-subsection {␊
2405 text-transform: uppercase;␊
2406 font-size: 18px;␊
2407 letter-spacing: 1px;␊
2408 padding: 0 5px 5px 5px;␊
2409 margin-bottom: 15px;␊
2410 }␊
2411
2412 .request table {␊
2413 width: 100%;␊
2414 border-collapse: collapse;␊
2415 margin-bottom: 80px;␊
2416 }␊
2417
2418 .request table td {␊
2419 padding: 6px 5px;␊
2420 font-size: 14px;␊
2421 letter-spacing: 0.4px;␊
2422 color: #455275;␊
2423 border-bottom: 1px solid #e8e8e8;␊
2424 word-break: break-word;␊
2425 }␊
2426
2427 .request table td.title {␊
2428 color: #999;␊
2429 width: 40%;␊
2430 font-size: 14px;␊
2431 font-weight: 600;␊
2432 text-transform: uppercase;␊
2433 }␊
2434
2435 .exception {␊
2436 background-color: #EFEFEF;␊
2437 padding: 2rem 4rem;␊
2438 border-top: 12px solid#00B1EB;␊
2439 }␊
2440
2441 .exception-name {␊
2442 color: #ff2a26;␊
2443 font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;␊
2444 font-size: 1.5em;␊
2445 opacity: .9;␊
2446 font-weight: bold;␊
2447 }␊
2448
2449 code[class*="language-"], pre[class*="language-"] {␊
2450 background: transparent;␊
2451 font-size: 18px;␊
2452 }␊
2453
2454 .line-numbers .line-numbers-rows {␊
2455 border: none;␊
2456 }␊
2457
2458 .frame-row {␊
2459 display: flex;␊
2460 justify-content: space-between;␊
2461 padding: 16px 32px 16px 32px;␊
2462 position: relative;␊
2463 cursor: pointer;␊
2464 transition: background 300ms ease;␊
2465 }␊
2466
2467 .frame-row.native-frame {␊
2468 opacity: 0.4;␊
2469 display: flex;␊
2470 }␊
2471
2472 .frame-row:after {␊
2473 content: "";␊
2474 background: #db5461;␊
2475 position: absolute;␊
2476 top: 50%;␊
2477 right: 8px;␊
2478 transform: translateY(-50%);␊
2479 height: 8px;␊
2480 width: 8px;␊
2481 border-radius: 24px;␊
2482 }␊
2483
2484 .frame-row:hover, .frame-row.active {␊
2485 background: #fff;␊
2486 }␊
2487
2488 .frame-row.active {␊
2489 opacity: 1;␊
2490 }␊
2491
2492 .frame-row-filepath {␊
2493 color: #455275;␊
2494 font-weight: 600;␊
2495 margin-right: 15px;␊
2496 }␊
2497
2498 .frame-context {␊
2499 display: none;␊
2500 }␊
2501
2502 .frame-row-code {␊
2503 color: #999;␊
2504 }␊
2505
2506 #frame-file-name {␊
2507 color: #455275;␊
2508 font-weight: 600;␊
2509 border-bottom: 1px solid #e8e8e8;␊
2510 padding: 16px 32px;␊
2511 }␊
2512
2513 #frame-function-name {␊
2514 color: #999;␊
2515 font-weight: 400;␊
2516 border-top: 1px solid #e8e8e8;␊
2517 padding: 16px 32px;␊
2518 }␊
2519
2520 @media only screen and (max-width: 970px) {␊
2521 .frames {␊
2522 flex-direction: column-reverse;␊
2523 }␊
2524
2525 .frame-preview {␊
2526 width: 100%;␊
2527 }␊
2528
2529 .frame-stack {␊
2530 width: 100%;␊
2531 }␊
2532 }␊
2533
2534 </style>␊
2535
2536 </head>␊
2537 <body>␊
2538 <section class="exception">␊
2539 <h2 class="exception-name">TypeError</h2>␊
2540 <h2 class="message"> The &quot;string&quot; argument must be one of type string, Buffer, or ArrayBuffer. Received type undefined</h2>␊
2541 </section>␊
2542 <section class="container">␊
2543 <section class="main">␊
2544 <div class="frames">␊
2545
2546 <div class="frame-stack">␊
2547 <div class="frames-list">␊
2548
2549 <div class="frame-row active native-frame">␊
2550 <div class="frame-row-filepath">␊
2551 buffer.js:693:11␊
2552 </div>␊
2553 <div class="frame-row-code">␊
2554 Function.byteLength␊
2555 </div>␊
2556 <div class="frame-context"␊
2557 data-start=""␊
2558 data-line="693"␊
2559 data-file="buffer.js"␊
2560 data-method="Function.byteLength"␊
2561 data-line-column="693:11"␊
2562 >␊
2563
2564
2565 </div>␊
2566 </div>␊
2567
2568 <div class="frame-row ">␊
2569 <div class="frame-row-filepath">␊
2570 index.js:244:47␊
2571 </div>␊
2572 <div class="frame-row-code">␊
2573
2574 </div>␊
2575 <div class="frame-context"␊
2576 data-start="239"␊
2577 data-line="244"␊
2578 data-file="index.js"␊
2579 data-method=""␊
2580 data-line-column="244:47"␊
2581 > } else {␊
2582 if (!response.getHeader(&#39;Content-Type&#39;))␊
2583 response.setHeader(&#39;Content-Type&#39;, type || &#39;text&#x2F;plain&#39;);␊
2584 }␊
2585
2586 response.setHeader(&#39;Content-Length&#39;, Buffer.byteLength(str));␊
2587 response.end(str);␊
2588 };␊
2589
2590 const handleRequest &#x3D; async context &#x3D;&gt; {␊
2591 const { headers } &#x3D; context.request;␊
2592 </div>␊
2593 </div>␊
2594
2595 <div class="frame-row native-frame">␊
2596 <div class="frame-row-filepath">␊
2597 internal&#x2F;process&#x2F;task_queues.js:93:5␊
2598 </div>␊
2599 <div class="frame-row-code">␊
2600 processTicksAndRejections␊
2601 </div>␊
2602 <div class="frame-context"␊
2603 data-start=""␊
2604 data-line="93"␊
2605 data-file="internal&#x2F;process&#x2F;task_queues.js"␊
2606 data-method="processTicksAndRejections"␊
2607 data-line-column="93:5"␊
2608 >␊
2609
2610
2611 </div>␊
2612 </div>␊
2613 </div>␊
2614 </div>␊
2615
2616 <div class="frame-preview">␊
2617 <div id="frame-file-name"></div>␊
2618 <pre class="line-numbers"><code class="language-js" id="snippet"></code></pre>␊
2619 <div id="frame-function-name"></div>␊
2620 </div>␊
2621 </div>␊
2622 </section>␊
2623
2624 <section class="request">␊
2625 <h2 class="request-subsection">Request</h2>␊
2626 <table>␊
2627 <tr>␊
2628 <td class="title">URL</td>␊
2629 <td>&#x2F;request-validation?name&#x3D;Zaiste&amp;admin&#x3D;true</td>␊
2630 </tr>␊
2631
2632 <tr>␊
2633 <td class="title">Method</td>␊
2634 <td>GET</td>␊
2635 </tr>␊
2636 </table>␊
2637
2638 <h2 class="request-subsection">Headers</h2>␊
2639 <table>␊
2640 <tr>␊
2641 <td class="title"> ACCEPT </td>␊
2642 <td> application&#x2F;json, text&#x2F;plain, *&#x2F;* </td>␊
2643 </tr>␊
2644 <tr>␊
2645 <td class="title"> USER-AGENT </td>␊
2646 <td> axios&#x2F;0.19.0 </td>␊
2647 </tr>␊
2648 <tr>␊
2649 <td class="title"> HOST </td>␊
2650 <td> localhost:3000 </td>␊
2651 </tr>␊
2652 </table>␊
2653
2654 <h2 class="request-subsection">Cookies</h2>␊
2655 <table>␊
2656 </table>␊
2657 </section>␊
2658 </section>␊
2659 <script type="text/javascript">␊
2660 var _self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{},Prism=function(){var l=/\\blang(?:uage)?-(\\w+)\\b/i,t=0,L=_self.Prism={util:{encode:function(e){return e instanceof s?new s(e.type,L.util.encode(e.content),e.alias):"Array"===L.util.type(e)?e.map(L.util.encode):e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/\\u00a0/g," ")},type:function(e){return Object.prototype.toString.call(e).match(/\\[object (\\w+)\\]/)[1]},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++t}),e.__id},clone:function(e){switch(L.util.type(e)){case"Object":var t={};for(var n in e)e.hasOwnProperty(n)&&(t[n]=L.util.clone(e[n]));return t;case"Array":return e.map&&e.map(function(e){return L.util.clone(e)})}return e}},languages:{extend:function(e,t){var n=L.util.clone(L.languages[e]);for(var a in t)n[a]=t[a];return n},insertBefore:function(n,e,t,a){var r=(a=a||L.languages)[n];if(2==arguments.length){for(var i in t=e)t.hasOwnProperty(i)&&(r[i]=t[i]);return r}var s={};for(var o in r)if(r.hasOwnProperty(o)){if(o==e)for(var i in t)t.hasOwnProperty(i)&&(s[i]=t[i]);s[o]=r[o]}return L.languages.DFS(L.languages,function(e,t){t===a[n]&&e!=n&&(this[e]=s)}),a[n]=s},DFS:function(e,t,n,a){for(var r in a=a||{},e)e.hasOwnProperty(r)&&(t.call(e,r,e[r],n||r),"Object"!==L.util.type(e[r])||a[L.util.objId(e[r])]?"Array"!==L.util.type(e[r])||a[L.util.objId(e[r])]||(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,r,a)):(a[L.util.objId(e[r])]=!0,L.languages.DFS(e[r],t,null,a)))}},plugins:{},highlightAll:function(e,t){var n={callback:t,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};L.hooks.run("before-highlightall",n);for(var a,r=n.elements||document.querySelectorAll(n.selector),i=0;a=r[i++];)L.highlightElement(a,!0===e,n.callback)},highlightElement:function(e,t,n){for(var a,r,i=e;i&&!l.test(i.className);)i=i.parentNode;i&&(a=(i.className.match(l)||[,""])[1].toLowerCase(),r=L.languages[a]),e.className=e.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a,i=e.parentNode,/pre/i.test(i.nodeName)&&(i.className=i.className.replace(l,"").replace(/\\s+/g," ")+" language-"+a);var s={element:e,language:a,grammar:r,code:e.textContent};if(L.hooks.run("before-sanity-check",s),!s.code||!s.grammar)return s.code&&(s.element.textContent=s.code),void L.hooks.run("complete",s);if(L.hooks.run("before-highlight",s),t&&_self.Worker){var o=new Worker(L.filename);o.onmessage=function(e){s.highlightedCode=e.data,L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(s.element),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},o.postMessage(JSON.stringify({language:s.language,code:s.code,immediateClose:!0}))}else s.highlightedCode=L.highlight(s.code,s.grammar,s.language),L.hooks.run("before-insert",s),s.element.innerHTML=s.highlightedCode,n&&n.call(e),L.hooks.run("after-highlight",s),L.hooks.run("complete",s)},highlight:function(e,t,n){var a=L.tokenize(e,t);return s.stringify(L.util.encode(a),n)},tokenize:function(e,t){var n=L.Token,a=[e],r=t.rest;if(r){for(var i in r)t[i]=r[i];delete t.rest}e:for(var i in t)if(t.hasOwnProperty(i)&&t[i]){var s=t[i];s="Array"===L.util.type(s)?s:[s];for(var o=0;o<s.length;++o){var l=s[o],u=l.inside,c=!!l.lookbehind,d=!!l.greedy,p=0,g=l.alias;if(d&&!l.pattern.global){var m=l.pattern.toString().match(/[imuy]*$/)[0];l.pattern=RegExp(l.pattern.source,m+"g")}l=l.pattern||l;for(var f=0,h=0;f<a.length;h+=a[f].length,++f){var b=a[f];if(a.length>e.length)break e;if(!(b instanceof n)){l.lastIndex=0;var y=1;if(!(S=l.exec(b))&&d&&f!=a.length-1){if(l.lastIndex=h,!(S=l.exec(e)))break;for(var v=S.index+(c?S[1].length:0),w=S.index+S[0].length,k=f,A=h,P=a.length;k<P&&A<w;++k)(A+=a[k].length)<=v&&(++f,h=A);if(a[f]instanceof n||a[k-1].greedy)continue;y=k-f,b=e.slice(h,A),S.index-=h}if(S){c&&(p=S[1].length);w=(v=S.index+p)+(S=S[0].slice(p)).length;var S,x=b.slice(0,v),N=b.slice(w),E=[f,y];x&&E.push(x);var C=new n(i,u?L.tokenize(S,u):S,g,S,d);E.push(C),N&&E.push(N),Array.prototype.splice.apply(a,E)}}}}}return a},hooks:{all:{},add:function(e,t){var n=L.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=L.hooks.all[e];if(n&&n.length)for(var a,r=0;a=n[r++];)a(t)}}},s=L.Token=function(e,t,n,a,r){this.type=e,this.content=t,this.alias=n,this.length=0|(a||"").length,this.greedy=!!r};if(s.stringify=function(t,n,e){if("string"==typeof t)return t;if("Array"===L.util.type(t))return t.map(function(e){return s.stringify(e,n,t)}).join("");var a={type:t.type,content:s.stringify(t.content,n,e),tag:"span",classes:["token",t.type],attributes:{},language:n,parent:e};if("comment"==a.type&&(a.attributes.spellcheck="true"),t.alias){var r="Array"===L.util.type(t.alias)?t.alias:[t.alias];Array.prototype.push.apply(a.classes,r)}L.hooks.run("wrap",a);var i=Object.keys(a.attributes).map(function(e){return e+'="'+(a.attributes[e]||"").replace(/"/g,"&quot;")+'"'}).join(" ");return"<"+a.tag+' class="'+a.classes.join(" ")+'"'+(i?" "+i:"")+">"+a.content+"</"+a.tag+">"},!_self.document)return _self.addEventListener&&_self.addEventListener("message",function(e){var t=JSON.parse(e.data),n=t.language,a=t.code,r=t.immediateClose;_self.postMessage(L.highlight(a,L.languages[n],n)),r&&_self.close()},!1),_self.Prism;var e=document.currentScript||[].slice.call(document.getElementsByTagName("script")).pop();return e&&(L.filename=e.src,document.addEventListener&&!e.hasAttribute("data-manual")&&("loading"!==document.readyState?window.requestAnimationFrame?window.requestAnimationFrame(L.highlightAll):window.setTimeout(L.highlightAll,16):document.addEventListener("DOMContentLoaded",L.highlightAll))),_self.Prism}();"undefined"!=typeof module&&module.exports&&(module.exports=Prism),"undefined"!=typeof global&&(global.Prism=Prism),Prism.languages.markup={comment:/<!--[\\w\\W]*?-->/,prolog:/<\\?[\\w\\W]+?\\?>/,doctype:/<!DOCTYPE[\\w\\W]+?>/i,cdata:/<!\\[CDATA\\[[\\w\\W]*?]]>/i,tag:{pattern:/<\\/?(?!\\d)[^\\s>\\/=$<]+(?:\\s+[^\\s>\\/=]+(?:=(?:("|')(?:\\\\\\1|\\\\?(?!\\1)[\\w\\W])*\\1|[^\\s'">=]+))?)*\\s*\\/?>/i,inside:{tag:{pattern:/^<\\/?[^\\s>\\/]+/i,inside:{punctuation:/^<\\/?/,namespace:/^[^\\s>\\/:]+:/}},"attr-value":{pattern:/=(?:('|")[\\w\\W]*?(\\1)|[^\\s>]+)/i,inside:{punctuation:/[=>"']/}},punctuation:/\\/?>/,"attr-name":{pattern:/[^\\s>\\/]+/,inside:{namespace:/^[^\\s>\\/:]+:/}}}},entity:/&#?[\\da-z]{1,8};/i},Prism.hooks.add("wrap",function(e){"entity"===e.type&&(e.attributes.title=e.content.replace(/&amp;/,"&"))}),Prism.languages.xml=Prism.languages.markup,Prism.languages.html=Prism.languages.markup,Prism.languages.mathml=Prism.languages.markup,Prism.languages.svg=Prism.languages.markup,Prism.languages.css={comment:/\\/\\*[\\w\\W]*?\\*\\//,atrule:{pattern:/@[\\w-]+?.*?(;|(?=\\s*\\{))/i,inside:{rule:/@[\\w-]+/}},url:/url\\((?:(["'])(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1|.*?)\\)/i,selector:/[^\\{\\}\\s][^\\{\\};]*?(?=\\s*\\{)/,string:{pattern:/("|')(\\\\(?:\\r\\n|[\\w\\W])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},property:/(\\b|\\B)[\\w-]+(?=\\s*:)/i,important:/\\B!important\\b/i,function:/[-a-z0-9]+(?=\\()/i,punctuation:/[(){};:]/},Prism.languages.css.atrule.inside.rest=Prism.util.clone(Prism.languages.css),Prism.languages.markup&&(Prism.languages.insertBefore("markup","tag",{style:{pattern:/(<style[\\w\\W]*?>)[\\w\\W]*?(?=<\\/style>)/i,lookbehind:!0,inside:Prism.languages.css,alias:"language-css"}}),Prism.languages.insertBefore("inside","attr-value",{"style-attr":{pattern:/\\s*style=("|').*?\\1/i,inside:{"attr-name":{pattern:/^\\s*style/i,inside:Prism.languages.markup.tag.inside},punctuation:/^\\s*=\\s*['"]|['"]\\s*$/,"attr-value":{pattern:/.+/i,inside:Prism.languages.css}},alias:"language-css"}},Prism.languages.markup.tag)),Prism.languages.clike={comment:[{pattern:/(^|[^\\\\])\\/\\*[\\w\\W]*?\\*\\//,lookbehind:!0},{pattern:/(^|[^\\\\:])\\/\\/.*/,lookbehind:!0}],string:{pattern:/(["'])(\\\\(?:\\r\\n|[\\s\\S])|(?!\\1)[^\\\\\\r\\n])*\\1/,greedy:!0},"class-name":{pattern:/((?:\\b(?:class|interface|extends|implements|trait|instanceof|new)\\s+)|(?:catch\\s+\\())[a-z0-9_\\.\\\\]+/i,lookbehind:!0,inside:{punctuation:/(\\.|\\\\)/}},keyword:/\\b(if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\\b/,boolean:/\\b(true|false)\\b/,function:/[a-z0-9_]+(?=\\()/i,number:/\\b-?(?:0x[\\da-f]+|\\d*\\.?\\d+(?:e[+-]?\\d+)?)\\b/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*|\\/|~|\\^|%/,punctuation:/[{}[\\];(),.:]/},Prism.languages.javascript=Prism.languages.extend("clike",{keyword:/\\b(as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|var|void|while|with|yield)\\b/,number:/\\b-?(0x[\\dA-Fa-f]+|0b[01]+|0o[0-7]+|\\d*\\.?\\d+([Ee][+-]?\\d+)?|NaN|Infinity)\\b/,function:/[_$a-zA-Z\\xA0-\\uFFFF][_$a-zA-Z0-9\\xA0-\\uFFFF]*(?=\\()/i,operator:/--?|\\+\\+?|!=?=?|<=?|>=?|==?=?|&&?|\\|\\|?|\\?|\\*\\*?|\\/|~|\\^|%|\\.{3}/}),Prism.languages.insertBefore("javascript","keyword",{regex:{pattern:/(^|[^\\/])\\/(?!\\/)(\\[.+?]|\\\\.|[^\\/\\\\\\r\\n])+\\/[gimyu]{0,5}(?=\\s*($|[\\r\\n,.;})]))/,lookbehind:!0,greedy:!0}}),Prism.languages.insertBefore("javascript","string",{"template-string":{pattern:/`(?:\\\\\\\\|\\\\?[^\\\\])*?`/,greedy:!0,inside:{interpolation:{pattern:/\\$\\{[^}]+\\}/,inside:{"interpolation-punctuation":{pattern:/^\\$\\{|\\}$/,alias:"punctuation"},rest:Prism.languages.javascript}},string:/[\\s\\S]+/}}}),Prism.languages.markup&&Prism.languages.insertBefore("markup","tag",{script:{pattern:/(<script[\\w\\W]*?>)[\\w\\W]*?(?=<\\/script>)/i,lookbehind:!0,inside:Prism.languages.javascript,alias:"language-javascript"}}),Prism.languages.js=Prism.languages.javascript,function(){function r(e,t){return Array.prototype.slice.call((t||document).querySelectorAll(e))}function d(e,t){return t=" "+t+" ",-1<(" "+e.className+" ").replace(/[\\n\\t]/g," ").indexOf(t)}function i(e,t,n){for(var a,r=t.replace(/\\s+/g,"").split(","),i=+e.getAttribute("data-line-offset")||0,s=(p()?parseInt:parseFloat)(getComputedStyle(e).lineHeight),o=0;a=r[o++];){var l=+(a=a.split("-"))[0],u=+a[1]||l,c=document.createElement("div");c.textContent=Array(u-l+2).join(" \\n"),c.setAttribute("aria-hidden","true"),c.className=(n||"")+" line-highlight",d(e,"line-numbers")||(c.setAttribute("data-start",l),l<u&&c.setAttribute("data-end",u)),c.style.top=(l-i-1)*s+"px",d(e,"line-numbers")?e.appendChild(c):(e.querySelector("code")||e).appendChild(c)}}function a(){var e=location.hash.slice(1);r(".temporary.line-highlight").forEach(function(e){e.parentNode.removeChild(e)});var t=(e.match(/\\.([\\d,-]+)$/)||[,""])[1];if(t&&!document.getElementById(e)){var n=e.slice(0,e.lastIndexOf(".")),a=document.getElementById(n);a&&(a.hasAttribute("data-line")||a.setAttribute("data-line",""),i(a,t,"temporary "),document.querySelector(".temporary.line-highlight").scrollIntoView())}}if("undefined"!=typeof self&&self.Prism&&self.document&&document.querySelector){var p=function(){if(void 0===t){var e=document.createElement("div");e.style.fontSize="13px",e.style.lineHeight="1.5",e.style.padding=0,e.style.border=0,e.innerHTML="&nbsp;<br />&nbsp;",document.body.appendChild(e),t=38===e.offsetHeight,document.body.removeChild(e)}return t},s=0;Prism.hooks.add("complete",function(e){var t=e.element.parentNode,n=t&&t.getAttribute("data-line");t&&n&&/pre/i.test(t.nodeName)&&(clearTimeout(s),r(".line-highlight",t).forEach(function(e){e.parentNode.removeChild(e)}),i(t,n),s=setTimeout(a,1))}),window.addEventListener&&window.addEventListener("hashchange",a)}var t}(),"undefined"!=typeof self&&self.Prism&&self.document&&Prism.hooks.add("complete",function(e){if(e.code){var t=e.element.parentNode,n=/\\s*\\bline-numbers\\b\\s*/;if(t&&/pre/i.test(t.nodeName)&&(n.test(t.className)||n.test(e.element.className))&&!e.element.querySelector(".line-numbers-rows")){n.test(e.element.className)&&(e.element.className=e.element.className.replace(n,"")),n.test(t.className)||(t.className+=" line-numbers");var a,r=e.code.match(/\\n(?!$)/g),i=r?r.length+1:1,s=new Array(i+1);s=s.join("<span></span>"),(a=document.createElement("span")).setAttribute("aria-hidden","true"),a.className="line-numbers-rows",a.innerHTML=s,t.hasAttribute("data-start")&&(t.style.counterReset="linenumber "+(parseInt(t.getAttribute("data-start"),10)-1)),e.element.appendChild(a)}}}),function(){if("undefined"!=typeof self&&self.Prism&&self.document){function t(){}var i=[],s={};Prism.plugins.toolbar={};var e=Prism.plugins.toolbar.registerButton=function(e,n){var t;t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),t.textContent=n.text,t},i.push(s[e]=t)},n=Prism.plugins.toolbar.hook=function(a){var e=a.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&!e.classList.contains("code-toolbar")){e.classList.add("code-toolbar");var r=document.createElement("div");r.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(i=document.body.getAttribute("data-toolbar-order").split(",").map(function(e){return s[e]||t})),i.forEach(function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),r.appendChild(n)}}),e.appendChild(r)}};e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",n)}}(),function(){if("undefined"!=typeof self&&self.Prism&&self.document){if(!Prism.plugins.toolbar)return console.warn("Show Languages plugin loaded before Toolbar plugin.");var r={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",javascript:"JavaScript",abap:"ABAP",actionscript:"ActionScript",apacheconf:"Apache Configuration",apl:"APL",applescript:"AppleScript",asciidoc:"AsciiDoc",aspnet:"ASP.NET (C#)",autoit:"AutoIt",autohotkey:"AutoHotkey",basic:"BASIC",csharp:"C#",cpp:"C++",coffeescript:"CoffeeScript","css-extras":"CSS Extras",fsharp:"F#",glsl:"GLSL",graphql:"GraphQL",http:"HTTP",inform7:"Inform 7",json:"JSON",latex:"LaTeX",livescript:"LiveScript",lolcode:"LOLCODE",matlab:"MATLAB",mel:"MEL",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",parigp:"PARI/GP",php:"PHP","php-extras":"PHP Extras",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",jsx:"React JSX",rest:"reST (reStructuredText)",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)",sql:"SQL",typescript:"TypeScript",vhdl:"VHDL",vim:"vim",wiki:"Wiki markup",xojo:"Xojo (REALbasic)",yaml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)){var n=t.getAttribute("data-language")||r[e.language]||e.language.substring(0,1).toUpperCase()+e.language.substring(1),a=document.createElement("span");return a.textContent=n,a}})}}(),window.onload=function(e){function t(e){var t=e.querySelector(".frame-context"),n=t.innerHTML;n=0===n.trim().length?"Stack frames not available":n;var a=t.getAttribute("data-line"),r=t.getAttribute("data-start"),i=t.getAttribute("data-file"),s=t.getAttribute("data-method"),o=t.getAttribute("data-line-column");document.getElementById("snippet").parentNode.setAttribute("data-line",a),document.getElementById("snippet").parentNode.setAttribute("data-start",r),document.getElementById("snippet").parentNode.setAttribute("data-line-offset",Number(r)-1),document.getElementById("snippet").innerHTML=n,document.getElementById("frame-file-name").innerHTML=i,document.getElementById("frame-function-name").innerHTML=s+" "+o,window.Prism.highlightAll()}var n=document.querySelector(".frame-row.active");document.querySelectorAll(".frame-row").forEach(function(e){e.addEventListener("click",function(){document.querySelector(".frame-row.active").classList.remove("active"),this.classList.add("active"),t(this)})}),t(n)};␊
2661 </script>␊
2662 </body>␊
2663 </html>␊
2664 `,
2665 headers: {
2666 connection: 'close',
2667 'content-type': 'text/html',
2668 date: 'Thu, 03 Oct 2019 09:50:37 GMT',
2669 'transfer-encoding': 'chunked',
2670 },
2671 request: ClientRequest {
2672 _contentLength: 0,
2673 _ended: true,
2674 _events: Object { … },
2675 _eventsCount: 6,
2676 _hasBody: true,
2677 _header: `GET /request-validation?name=Zaiste&admin=true HTTP/1.1␍␊
2678 Accept: application/json, text/plain, */*␍␊
2679 User-Agent: axios/0.19.0␍␊
2680 Host: localhost:3000␍␊
2681 Connection: close␍␊
2682 ␍␊
2683 `,
2684 _headerSent: true,
2685 _last: true,
2686 _maxListeners: undefined,
2687 _onPendingData: Function noopPendingOutput {},
2688 _redirectable: Writable { … },
2689 _removedConnection: false,
2690 _removedContLen: false,
2691 _removedTE: false,
2692 _trailer: '',
2693 aborted: false,
2694 agent: Agent { … },
2695 chunkedEncoding: false,
2696 connection: Socket { … },
2697 finished: true,
2698 maxHeadersCount: null,
2699 method: 'GET',
2700 outputData: [],
2701 outputSize: 0,
2702 parser: null,
2703 path: '/request-validation?name=Zaiste&admin=true',
2704 res: IncomingMessage { … },
2705 sendDate: false,
2706 shouldKeepAlive: false,
2707 socket: Socket { … },
2708 socketPath: undefined,
2709 timeoutCb: null,
2710 upgradeOrConnect: false,
2711 useChunkedEncodingByDefault: false,
2712 writable: true,
2713 [Symbol(kNeedDrain)]: false,
2714 [Symbol(isCorked)]: false,
2715 [Symbol(kOutHeaders)]: Object { … },
2716 },
2717 status: 500,
2718 statusText: 'Internal Server Error',
2719 },
2720 toJSON: Function {},
2721 message: 'Request failed with status code 500',
2722 }
2723
2724 createError (node_modules/axios/lib/core/createError.js:16:15)
2725 settle (node_modules/axios/lib/core/settle.js:17:12)
2726 IncomingMessage.handleStreamEnd (node_modules/axios/lib/adapters/http.js:237:11)
2727
2728
2729
2730 built-in validation with invalid request
2731
2732 /Users/zaiste/code/huncwotjs/huncwot/test/index.js:175
2733
2734 174: } catch ({ response: { status, data } }) {
2735 175: t.is(status, 422);
2736 176: t.deepEqual(data, ['name is required.']);
2737
2738 Difference:
2739
2740 - 500
2741 + 422
2742