Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |
Tags
- variable
- python
- 웹크롤러
- textstyle
- function
- map
- animation
- kotlin
- Collection
- 크롤러
- Class
- ML
- set
- crawler
- 클래스
- 다트
- Android
- 콜렉션
- texttheme
- text
- List
- DART
- 함수
- import
- package
- pushnamed
- 파이썬
- 플러터
- 코틀린
- Flutter
Archives
- Today
- Total
조용한 담장
간단한 내부 테스트용 HTTP server 본문
python
https://docs.python.org/3/library/http.server.html
python3 -m http.server 8080 --bind 192.168.0.2
node
https://www.npmjs.com/package/http-server
dart
https://dart.dev/tutorials/server/httpserver
import 'dart:async';
import 'dart:io';
import 'package:http_server/http_server.dart';
import 'package:path/path.dart' as p;
Future main() async {
final dir = VirtualDirectory('.')
..allowDirectoryListing = true;
final server = await HttpServer.bind(InternetAddress.loopbackIPv4, 8080);
print('Listening on http://${server.address.address}:${server.port}/');
await server.forEach(dir.serveRequest);
}
'tips' 카테고리의 다른 글
[python] __import__, importlib.import_module (0) | 2021.08.17 |
---|---|
Jest Error: import statement outside a module (0) | 2021.07.29 |
Debian 10 buster 에서 samba, 윈도우즈 공유 (0) | 2020.03.12 |
docker commit (0) | 2020.02.10 |
virtualbox 디스크 이미지 크기 줄이기 (Windows host) (0) | 2019.08.01 |
Comments