Request proxying of custom HTTP headers

Đang mở
#652 5 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
javascript
Lĩnh vực
api, backend

Hướng nghiên cứu

Bắt đầu bằng cách tái hiện request với http-server 0.12.3 bằng tùy chọn -P và một HTTP header tùy chỉnh, sau đó lần theo đường đi của proxy trong repository. Hoàn thành khi backend đã cấu hình nhận được header tùy chỉnh từ các request được gửi qua http-server; hãy xác minh điều này bằng một REST endpoint yêu cầu header đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

good first issue Hacktoberfest minor version stale

Steps to reproduce the issue, if applicable. Include the actual command and output and/or stack trace.

  1. Start http-server with the -P parameter pointing to a backend server that is reachable.
  2. Send a request, containing a custom HTTP header, to http-server that should be proxied to the configured server.

What did you expect to happen?
I expect the custom HTTP header to be available in the request as it is received in the backend server.

If the issue is a feature request, what is the motivation / use case for it?
I use http-server to run a development version of my Angular web application. The application needs data from a REST endpoint that requires a custom HTTP header to be present.

Tell us about your environment

  • **exact http-server version:**0.12.3
  • **Node version:**8.10.0
  • **Platform:**Windows 10
Ngôn ngữ chính
JavaScript
Star
14.2k
Fork
1.6k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của http-party/http-server

Tất cả issue của http-party/http-server

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.